$NetBSD: patch-aa,v 1.2 2000/08/06 14:45:05 wiz Exp $ --- Makefile.orig Thu Aug 3 19:23:33 2000 +++ Makefile Sun Aug 6 15:27:17 2000 @@ -44,10 +44,8 @@ # change the -L/usr/X11R6/lib to the directory where X11 # libraries libX11.* and libXext.* are located on your system. CC = gcc -DEFINES = -DFMSX -DUNIX -DLSB_FIRST -DDEBUG -DMITSHM \ - -DDISK -DNARROW -DSOUND -DBPP16 -CFLAGS = -O3 -fomit-frame-pointer \ - -I/usr/X11/include -L/usr/X11/lib ${DEFINES} +DEFINES = -DFMSX -DUNIX -DDISK -DNARROW ${DEFS} +CFLAGS = -O3 -fomit-frame-pointer -I${X11BASE}/include ${DEFINES} OBJECTS = fMSX.o MSX.o Z80.o AY8910.o SCC.o V9938.o Patch.o Debug.o \ Disk.o Unix.o LibUnix.o SndUnix.o MIDI.o @@ -63,7 +61,7 @@ # fMSX Unix/X requires X11 libraries. See note above if you are # experiencing any problems. fmsx: ${OBJECTS} - ${CC} ${CFLAGS} -o fmsx ${OBJECTS} -lXext -lX11 + ${CC} ${CFLAGS} -o fmsx ${OBJECTS} -Wl,-R${X11BASE}/lib -L${X11BASE}/lib -lXext -lX11 # Clean up. clean: