diff options
author | Johan van Selst <johans@FreeBSD.org> | 2011-07-25 19:40:47 +0000 |
---|---|---|
committer | Johan van Selst <johans@FreeBSD.org> | 2011-07-25 19:40:47 +0000 |
commit | 044d86321d919c6c9662f504485724991053bb2a (patch) | |
tree | aeff00347785115ff86c573557751e42c58d38a9 /lang | |
parent | 088953dd8b46c757ecfeb6e108d133f804dd59b3 (diff) | |
download | ports-044d86321d919c6c9662f504485724991053bb2a.tar.gz ports-044d86321d919c6c9662f504485724991053bb2a.zip |
Notes
Diffstat (limited to 'lang')
-rw-r--r-- | lang/moscow_ml/files/patch-Makefile.inc | 3 | ||||
-rw-r--r-- | lang/moscow_ml/files/patch-config::auto_aux::hasgot | 13 | ||||
-rw-r--r-- | lang/moscow_ml/files/patch-runtime::Makefile | 11 |
3 files changed, 26 insertions, 1 deletions
diff --git a/lang/moscow_ml/files/patch-Makefile.inc b/lang/moscow_ml/files/patch-Makefile.inc index 597682bfde17..6385816adf1c 100644 --- a/lang/moscow_ml/files/patch-Makefile.inc +++ b/lang/moscow_ml/files/patch-Makefile.inc @@ -18,7 +18,7 @@ ADDRUNCFLAGS= ADDDYNLIBCFLAGS= -@@ -45,13 +45,13 @@ +@@ -45,13 +45,14 @@ # For NetBSD, use: # ------------------------ @@ -36,6 +36,7 @@ +INSTALL_PROGRAM=${BSD_INSTALL_PROGRAM} +INSTALL_SCRIPT=${BSD_INSTALL_SCRIPT} +INSTALL_DATA=${BSD_INSTALL_DATA} ++LD=${CC} -rdynamic # For Solaris 2 (not SunOS 4), use: # --------------------------------- diff --git a/lang/moscow_ml/files/patch-config::auto_aux::hasgot b/lang/moscow_ml/files/patch-config::auto_aux::hasgot new file mode 100644 index 000000000000..496e137b5f6e --- /dev/null +++ b/lang/moscow_ml/files/patch-config::auto_aux::hasgot @@ -0,0 +1,13 @@ +--- config/auto-aux/hasgot.orig 2011-07-25 21:36:30.000000000 +0200 ++++ config/auto-aux/hasgot 2011-07-25 21:36:36.000000000 +0200 +@@ -1,5 +1,7 @@ + #!/bin/sh +-(echo "main() {" ++( ++ for f in $*; do echo "extern void $f(void);"; done ++ echo "int main() {" + for f in $*; do echo " $f();"; done +- echo "}") > hasgot.c +-exec $cc -o tst hasgot.c > /dev/null 2>/dev/null ++ echo "return 0; }") > hasgot.c ++exec $cc -o tst hasgot.c diff --git a/lang/moscow_ml/files/patch-runtime::Makefile b/lang/moscow_ml/files/patch-runtime::Makefile index 1d05c283b559..a52bf07ea01f 100644 --- a/lang/moscow_ml/files/patch-runtime::Makefile +++ b/lang/moscow_ml/files/patch-runtime::Makefile @@ -9,3 +9,14 @@ primitives : $(PRIMS) sed -n -e '/\/\* ML \*\//s/.* \([a-zA-Z0-9_][a-zA-Z0-9_]*\) *(.*/\1/p' \ +@@ -87,8 +87,8 @@ + depend : prims.c opnames.h jumptbl.h + mv Makefile Makefile.bak + (sed -n -e '1,/^### DO NOT DELETE THIS LINE/p' Makefile.bak; \ +- gcc -MM -I.. $(OPTS) *.c; \ +- gcc -MM -I.. $(OPTS) -DDEBUG *.c | sed -e 's/\.o/.d.o/') > Makefile ++ $(CC) -MM -I.. $(OPTS) *.c; \ ++ $(CC) -MM -I.. $(OPTS) -DDEBUG *.c | sed -e 's/\.o/.d.o/') > Makefile + rm Makefile.bak + + ### EVERYTHING THAT GOES BEYOND THIS COMMENT WILL BE ERASED WITHOUT WARNING |