diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2019-06-27 13:11:22 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2019-06-27 13:11:22 +0000 |
commit | b2ec9fe69ad149871ccebd984471070d68984a8a (patch) | |
tree | f5f6c9bf3a039c9142d1a00fa3a0e76666e36bfa /lang/ocaml | |
parent | 18effbda6fe5990c460061a58ff6f5e026afb126 (diff) | |
download | freebsd-ports-b2ec9fe69ad149871ccebd984471070d68984a8a.zip |
Make sure that correct LDFLAGS are passed when linking shared libraries,
otherwise the build would fail on i386 with recent versions of FreeBSD.
PR: 218333
Diffstat (limited to 'lang/ocaml')
-rw-r--r-- | lang/ocaml/files/patch-configure | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/ocaml/files/patch-configure b/lang/ocaml/files/patch-configure index 02286d19eb9a..03e99ed87e18 100644 --- a/lang/ocaml/files/patch-configure +++ b/lang/ocaml/files/patch-configure @@ -1,5 +1,14 @@ --- configure.orig 2017-07-13 08:56:44 UTC +++ configure +@@ -806,7 +806,7 @@ if test $with_sharedlibs = "yes"; then + *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-freebsd[1-9][0-9]*\ + |*-*-openbsd*|*-*-netbsd*|*-*-dragonfly*|*-*-gnu*|*-*-haiku*) + sharedcccompopts="-fPIC" +- mksharedlib="$bytecc -shared" ++ mksharedlib="$bytecc $bytecclinkopts -shared" + bytecclinkopts="$bytecclinkopts -Wl,-E" + byteccrpath="-Wl,-rpath," + mksharedlibrpath="-Wl,-rpath," @@ -838,6 +838,7 @@ if test $with_sharedlibs = "yes"; then x86_64-*-darwin*) natdynlink=true;; s390x*-*-linux*) natdynlink=true;; |