summaryrefslogtreecommitdiff
path: root/lang/newlisp-devel/files/patch-makefile_bsdLP64_utf8
diff options
context:
space:
mode:
Diffstat (limited to 'lang/newlisp-devel/files/patch-makefile_bsdLP64_utf8')
-rw-r--r--lang/newlisp-devel/files/patch-makefile_bsdLP64_utf822
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/newlisp-devel/files/patch-makefile_bsdLP64_utf8 b/lang/newlisp-devel/files/patch-makefile_bsdLP64_utf8
new file mode 100644
index 000000000000..ab43c1715c14
--- /dev/null
+++ b/lang/newlisp-devel/files/patch-makefile_bsdLP64_utf8
@@ -0,0 +1,22 @@
+
+$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