forked from Lainports/opnsense-ports
Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
20 lines
538 B
Text
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
|