$NetBSD: patch-ab,v 1.21 2006/06/15 11:40:00 dillo Exp $ --- src/unix/unix.mak.orig 2006-05-26 06:52:07.000000000 +0200 +++ src/unix/unix.mak @@ -242,7 +242,7 @@ CFLAGS += $(IL) $(CFLAGS.$(MY_CPU)) \ $(COREDEFS) $(SOUNDDEFS) $(CPUDEFS) $(ASMDEFS) \ $(INCLUDES) $(INCLUDE_PATH) -LIBS += $(LIBS.$(ARCH)) $(LIBS.$(DISPLAY_METHOD)) +LIBS += $(LIBS.$(ARCH)) $(LIBS.$(DISPLAY_METHOD)) -lexpat ifdef DEBUG CFLAGS += -DMAME_DEBUG @@ -559,15 +559,15 @@ xlistdev: src/unix/contrib/tools/xlistde romcmp: $(OBJ)/romcmp.o $(OBJ)/unzip.o $(ZLIB) @echo 'Linking $@...' - $(LD) $(LDFLAGS) $^ $(LIBS) -o $@ + $(LD) $(LDFLAGS) $^ -lz -o $@ chdman: $(OBJ)/chdman.o $(OBJ)/chd.o $(OBJ)/chdcd.o $(OBJ)/cdrom.o $(OBJ)/md5.o $(OBJ)/sha1.o $(OBJ)/version.o $(ZLIB) $(OSTOOLOBJS) @echo 'Linking $@...' - $(LD) $(LDFLAGS) $^ $(LIBS) -o $@ + $(LD) $(LDFLAGS) $^ -lz -o $@ xml2info: $(OBJ)/xml2info.o $(EXPAT) @echo 'Linking $@...' - $(LD) $(LDFLAGS) $^ $(LIBS) -o $@ + $(LD) $(LDFLAGS) $^ -lexpat -lz -o $@ jedutil: $(OBJ)/jedutil.o $(OBJ)/jedparse.o $(OSDBGOBJS) @echo 'Linking $@...'