From 359b906b69f0443c02942fe6ac06513607cfeb7a Mon Sep 17 00:00:00 2001 From: Marcos Mello Date: Sun, 26 Feb 2017 10:16:39 -0300 Subject: [PATCH] Unix: obey LDFLAGS on linking --- unix/Makefile.in | 2 +- unix/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'`"