diff --git a/unix/Makefile.in b/unix/Makefile.in index f0ef47d3..7d321e83 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -52,7 +52,7 @@ configure: configure.ac exit 1 snes9x: $(OBJECTS) - $(CCC) $(INCLUDES) -o $@ $(OBJECTS) -lm @S9XLIBS@ + $(CCC) $(LDFLAGS) $(INCLUDES) -o $@ $(OBJECTS) -lm @S9XLIBS@ ../jma/s9x-jma.o: ../jma/s9x-jma.cpp $(CCC) $(INCLUDES) -c $(CCFLAGS) -fexceptions $*.cpp -o $@ diff --git a/unix/configure.ac b/unix/configure.ac index 28186c67..869f0072 100644 --- a/unix/configure.ac +++ b/unix/configure.ac @@ -448,7 +448,7 @@ fi # Output. -S9XFLGS="$CXXFLAGS $CPPFLAGS $LDFLAGS $S9XFLGS" +S9XFLGS="$CXXFLAGS $CPPFLAGS $S9XFLGS" S9XLIBS="$LIBS $S9XLIBS" S9XFLGS="`echo \"$S9XFLGS\" | sed -e 's/ */ /g'`"