freebsd-ports/games/openjazz/files/patch-Makefile
Tijl Coosemans 216b5a285f - Fix missing library problems when the linker enforces explicit linking
PR:		192062
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-08-26 14:06:08 +00:00

15 lines
443 B
Text

--- Makefile.orig 2010-10-05 16:47:06.968648948 +0000
+++ Makefile 2010-10-05 16:48:42.770653951 +0000
@@ -27,10 +27,10 @@
OpenJazz: $(objects)
- cc -Wall -o OpenJazz -lSDL -lstdc++ -lz $(objects)
+ ${CXX} ${LDFLAGS} -Wall -o OpenJazz $(objects) -lz -lm
%.o: %.cpp
- cc -Wall -DUSE_SOCKETS -DSCALE -Isrc -O2 -c $< -o $@
+ ${CXX} ${CPPFLAGS} ${CFLAGS} -Wall -DUSE_SOCKETS -DSCALE -Isrc -c $< -o $@
clean:
rm -f OpenJazz $(objects)