Unix: obey LDFLAGS on linking

This commit is contained in:
Marcos Mello 2017-02-26 10:16:39 -03:00
parent 8edbeaaf9a
commit 359b906b69
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'`"