ports/graphics/cfdg/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

20 lines
538 B
Text

--- ./Makefile.orig 2010-09-13 06:15:25.000000000 +0200
+++ ./Makefile 2011-06-18 21:42:16.000000000 +0200
@@ -54,7 +54,7 @@
# Under Cygwin replace strip $@ with strip $@.exe
cfdg: $(OBJS)
- $(LINK.o) $^ -L/usr/local/lib -lstdc++ -lpng -lz -fexceptions -o $@
+ $(CXX) $^ $(shell libpng-config --ldflags) -lm -fexceptions -o $@
strip $@
@@ -105,7 +105,7 @@
#
CPPFLAGS += $(patsubst %,-I%,$(INC_DIRS))
-CPPFLAGS += -O3 -Wall
+CPPFLAGS += -O3 -Wall $(shell libpng-config --cflags)
#CPPFLAGS += -ggdb
$(OBJ_DIR)/%.o : %.cpp