diff options
author | Anil Madhavapeddy <anil@recoil.org> | 2016-12-01 18:23:02 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-12-02 21:20:45 +0000 |
commit | 801ace687ae3930b8c1bc3cc722aac05e0910f37 (patch) | |
tree | ccbcb858313b3533963883f7413aac04e50f8fcd /community/ocaml/020_all_configure.patch | |
parent | cf560a843119e90bb2950edc50c7e30c86e970fb (diff) | |
download | aports-801ace687ae3930b8c1bc3cc722aac05e0910f37.tar.bz2 aports-801ace687ae3930b8c1bc3cc722aac05e0910f37.tar.xz |
community/ocaml: move from testing to community
Diffstat (limited to 'community/ocaml/020_all_configure.patch')
-rw-r--r-- | community/ocaml/020_all_configure.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/community/ocaml/020_all_configure.patch b/community/ocaml/020_all_configure.patch new file mode 100644 index 0000000000..4505a987ec --- /dev/null +++ b/community/ocaml/020_all_configure.patch @@ -0,0 +1,51 @@ +The configure script doesn't inherit previous defined variables, +overwriting previous declarations of bytecccompopts, bytecclinkopts, +nativecccompopts and nativecclinkopts. Reported upstream as issue 0004267. + +Index: ocaml-4.03.0+beta1/configure +=================================================================== +--- ocaml-4.03.0+beta1.orig/configure ++++ ocaml-4.03.0+beta1/configure +@@ -290,7 +290,7 @@ esac + # Configure the bytecode compiler + + bytecc="$cc" +-mkexe="\$(BYTECC)" ++mkexe="\$(BYTECC) \$(BYTECCLINKOPTS)" + mkexedebugflag="-g" + bytecccompopts="" + bytecclinkopts="" +@@ -1671,6 +1671,16 @@ fi + echo "X11_INCLUDES=$x11_include" >> Makefile + echo "X11_LINK=$x11_link" >> Makefile + ++bytecccompopts="$CFLAGS $bytecccompopts" ++bytecclinkopts="$LDFLAGS $bytecclinkopts" ++natdynlinkopts="$LDFLAGS $natdynlinkopts" ++nativeccrawlinkopts="$RAW_LDFLAGS $nativecclinkopts" ++nativecclinkopts="$LDFLAGS $nativecclinkopts" ++nativecccompopts="$CFLAGS $nativecccompopts" ++nativeccprofopts="$nativecccompopts" ++mksharedlib="$mksharedlib $LDFLAGS" ++mkmaindll="$mkmaindll $LDFLAGS" ++ + # Look for BFD library + + if sh ./hasgot -DPACKAGE=ocaml -i bfd.h && \ +@@ -1769,6 +1779,7 @@ echo "NATIVECC=$nativecc" >> Makefile + echo "NATIVECCCOMPOPTS=$nativecccompopts" >> Makefile + echo "NATIVECCPROFOPTS=$nativeccprofopts" >> Makefile + echo "NATIVECCLINKOPTS=$nativecclinkopts" >> Makefile ++echo "NATIVECCRAWLINKOPTS=$nativeccrawlinkopts" >> Makefile + echo "NATIVECCRPATH=$nativeccrpath" >> Makefile + echo "NATIVECCLIBS=$cclibs $dllib" >> Makefile + echo "ASM=$as" >> Makefile +@@ -1780,7 +1791,7 @@ echo "OTHERLIBRARIES=$otherlibraries" >> + echo "CC_PROFILE=$cc_profile" >> Makefile + echo "SYSTHREAD_SUPPORT=$systhread_support" >> Makefile + echo "PARTIALLD=$partialld" >> Makefile +-echo "PACKLD=\$(PARTIALLD) \$(NATIVECCLINKOPTS) -o " \ ++echo "PACKLD=\$(PARTIALLD) \$(NATIVECCRAWLINKOPTS) -o " \ + | sed -e 's/ $/\\ /' >> Makefile + echo "DLLCCCOMPOPTS=$dllccompopts" >> Makefile + echo "IFLEXDIR=$iflexdir" >> Makefile |