opnsense-ports/lang/picoc/files/patch-Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

19 lines
464 B
Text

--- Makefile.orig 2014-08-15 15:40:43.000000000 -0400
+++ Makefile 2014-08-15 15:41:37.000000000 -0400
@@ -1,5 +1,5 @@
-CC=gcc
-CFLAGS=-Wall -pedantic -g -DUNIX_HOST
+CC?=gcc
+CFLAGS+=-Wall -pedantic -g -DUNIX_HOST
LIBS=-lm -lreadline
TARGET = picoc
@@ -14,7 +14,7 @@
all: $(TARGET)
$(TARGET): $(OBJS)
- $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
+ $(CC) $(CFLAGS) ${CPPFLAGS} -o $(TARGET) $(OBJS) ${LDFLAGS} $(LIBS)
test: all
(cd tests; make test)