freebsd-ports/lang/newlisp/files/patch-makefile_bsdLP64_utf8
Jimmy Olgeni 8b571f6ebe Update lang/newlisp to version 10.7.5.
PR:           237530 (plus changes for 10.7.5)
Submitted by: wen
2020-05-25 12:42:55 +00:00

19 lines
768 B
Text

--- makefile_bsdLP64_utf8.orig 2019-04-24 15:04:10 UTC
+++ makefile_bsdLP64_utf8
@@ -6,14 +6,12 @@ OBJS = newlisp.o nl-symbol.o nl-math.o nl-list.o nl-li
# the option -fno-strict-aliasing may not be available on some BSD versions
-CFLAGS = -m64 -Wall -Wno-strict-aliasing -O2 -c -g -I/usr/local/include -DREADLINE -DNEWLISP64 -DSUPPORT_UTF8 -D_BSD
+CFLAGS += -m64 -c -DREADLINE -DNEWLISP64 -DSUPPORT_UTF8 -D_BSD -DFFI
# or without readline lib
#CFLAGS = -m64 -Wall -Wno-strict-aliasing -O2 -c -g -DNEWLISP64 -D_BSD
-CC = cc
-
default: $(OBJS)
- $(CC) $(OBJS) -m64 -g -lm -lreadline -lncurses -o newlisp
+ $(CC) $(LDFLAGS) $(OBJS) -m64 -g -lm -lreadline -lncurses -o newlisp
# or without readline lib
# $(CC) $(OBJS) -m64 -g -lm -o newlisp
strip newlisp