ports/lang/newlisp/files/patch-makefile_bsdLP64_utf8
Jimmy Olgeni e453411939 Add support for the extended FFI, thus enabling the optional use
of the math/gsl interface.

Also, cleanup Makefile patches.
2013-03-09 21:28:49 +00:00

22 lines
722 B
Text

$FreeBSD$
--- makefile_bsdLP64_utf8.orig
+++ makefile_bsdLP64_utf8
@@ -6,14 +6,12 @@
# the option -fno-strict-aliasing may not be available on some BSD versions
-CFLAGS = -m64 -Wall -Wno-uninitialized -fno-strict-aliasing -O2 -c -g -DREADLINE -DNEWLISP64 -DSUPPORT_UTF8 -D_BSD
+CFLAGS += -m64 -c -DREADLINE -DNEWLISP64 -DSUPPORT_UTF8 -D_BSD -DFFI
# or without readline lib
#CFLAGS = -m64 -Wall -Wno-uninitialized -Wno-strict-aliasing -O2 -c -g -DNEWLISP64 -D_BSD
-CC = gcc
-
default: $(OBJS)
- $(CC) $(OBJS) -m64 -g -lm -lreadline -lncurses -o newlisp
+ $(CC) $(LDFLAGS) $(OBJS) -m64 -lm -lreadline -lncurses -lffi -o newlisp
# or without readline lib
# $(CC) $(OBJS) -m64 -g -lm -o newlisp
strip newlisp