svn commit: r505208 - head/lang/ocaml/files

Alexey Dokuchaev danfe at FreeBSD.org
Thu Jun 27 13:11:23 UTC 2019


Author: danfe
Date: Thu Jun 27 13:11:22 2019
New Revision: 505208
URL: https://svnweb.freebsd.org/changeset/ports/505208

Log:
  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

Modified:
  head/lang/ocaml/files/patch-configure

Modified: head/lang/ocaml/files/patch-configure
==============================================================================
--- head/lang/ocaml/files/patch-configure	Thu Jun 27 13:07:41 2019	(r505207)
+++ head/lang/ocaml/files/patch-configure	Thu Jun 27 13:11:22 2019	(r505208)
@@ -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;;


More information about the svn-ports-all mailing list