Merge pull request #176 from marcosfrm/unix-ldflags

Unix: obey LDFLAGS on linking
This commit is contained in:
bearoso 2017-02-26 11:12:20 -06:00 committed by GitHub
commit 800a7e8e13
2 changed files with 2 additions and 2 deletions

View File

@ -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 $@

View File

@ -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'`"