From c8af610e09dd50f9ebaaf512126859866e6af0f9 Mon Sep 17 00:00:00 2001 From: jkoshy Date: Fri, 15 Aug 2003 07:24:45 +0000 Subject: Fix build breakage with the GCC 3.3.1. Submitted by: Johannes 5 Joemann --- lang/sml-nj/files/extra-patch-cpp | 11 +++++++++++ lang/sml-nj/files/patch-ab | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 lang/sml-nj/files/extra-patch-cpp (limited to 'lang') diff --git a/lang/sml-nj/files/extra-patch-cpp b/lang/sml-nj/files/extra-patch-cpp new file mode 100644 index 000000000000..adb08fd8a575 --- /dev/null +++ b/lang/sml-nj/files/extra-patch-cpp @@ -0,0 +1,11 @@ +--- src/runtime/objs/mk.x86-freebsd.orig Fri Aug 15 11:39:43 2003 ++++ src/runtime/objs/mk.x86-freebsd Fri Aug 15 11:39:59 2003 +@@ -10,7 +10,7 @@ + ARFLAGS = Trcv + CC = gcc -ansi + CFLAGS = -O2 +-CPP = gcc -x c -E -P -ansi ++CPP = gcc -x assembler-with-cpp -E -P + #CPP = /usr/bin/cpp -P + + XOBJS = diff --git a/lang/sml-nj/files/patch-ab b/lang/sml-nj/files/patch-ab index 8d3c6f6edc31..0329e1b1a454 100644 --- a/lang/sml-nj/files/patch-ab +++ b/lang/sml-nj/files/patch-ab @@ -1,11 +1,15 @@ --- config/install.sh.orig Fri Oct 20 16:02:25 2000 +++ config/install.sh Tue Mar 11 22:30:59 2003 -@@ -155,6 +155,22 @@ +@@ -155,6 +155,26 @@ if [ "$?" != "0" ]; then exit $? fi +# we need to patch just before build +echo "applying source patches" ++patch_file="${FILESDIR}/extra-patch-cpp" ++if [ -f $patch_file ]; then ++ $PATCH $PATCH_ARGS < $patch_file ++fi +patch_file="${FILESDIR}/extra-patch-global-names" +if [ -f $patch_file ]; then + $PATCH $PATCH_ARGS < $patch_file -- cgit