aboutsummaryrefslogtreecommitdiffstats
path: root/math/ocaml-zarith/files/patch-configure
diff options
context:
space:
mode:
Diffstat (limited to 'math/ocaml-zarith/files/patch-configure')
-rw-r--r--math/ocaml-zarith/files/patch-configure26
1 files changed, 26 insertions, 0 deletions
diff --git a/math/ocaml-zarith/files/patch-configure b/math/ocaml-zarith/files/patch-configure
new file mode 100644
index 000000000000..d8022f7de1b1
--- /dev/null
+++ b/math/ocaml-zarith/files/patch-configure
@@ -0,0 +1,26 @@
+--- configure.orig 2013-06-12 07:13:59.000000000 +0000
++++ configure
+@@ -304,6 +304,14 @@ case $host in
+ arch='i686'
+ fi
+ ;;
++ i386-*freebsd* | i386-*dragonfly*)
++ ccdef="-DZ_ELF -DZ_DOT_LABEL_PREFIX $ccdef"
++ arch='i686'
++ ;;
++ amd64-*freebsd* | x86_64-*dragonfly*)
++ ccdef="-DZ_ELF -DZ_DOT_LABEL_PREFIX $ccdef"
++ arch='x86_64'
++ ;;
+ i386-*darwin* | x86_64-*darwin*)
+ ccdef="-DZ_UNDERSCORE_PREFIX -DZ_MACOS $ccdef"
+ if test "x$wordsize" = "x64"; then
+@@ -401,7 +409,7 @@ CFLAGS=$ccinc $ccdef $ccopt
+ ASFLAGS=$ccdef $asopt
+ LIBS=$cclib
+ ARCH=$arch
+-INSTALLDIR=$installdir
++INSTALLDIR=${DESTDIR}$installdir
+ AR=$ar
+ INSTALL=install
+ OCAMLFIND=ocamlfind