On Fri, 8 Mar 2019 00:19:24 +0000
Stuart Henderson <s...@spacehopper.org> wrote:

> Broken on i386; LDFLAGS is no longer getting passed to the linker in
> some places.

I tested the improved patch below successfully on i386. It failed once
with a "Sys_error: Permission denied", but I could not reproduce this
error. OK?

Christopher


Index: patch-configure
===================================================================
RCS file: /cvs/ports/lang/ocaml/patches/patch-configure,v
retrieving revision 1.23
diff -u -p -r1.23 patch-configure
--- patch-configure     4 Mar 2019 12:51:14 -0000       1.23
+++ patch-configure     8 Mar 2019 21:26:18 -0000
@@ -25,7 +25,7 @@ Index: configure
      |*-*-openbsd*|*-*-netbsd*|*-*-dragonfly*|*-*-gnu*|*-*-haiku*)
        sharedcccompopts="-fPIC"
 -      mksharedlib="$cc -shared"
-+      mksharedlib="$cc $common_cflags -shared"
++      mksharedlib="$cc $common_cflags $ldflags -shared"
        ldflags="$ldflags -Wl,-E"
 +      mkexe="$cc $ldflags"
        rpath="-Wl,-rpath,"

-- 
http://gmerlin.de
OpenPGP: http://gmerlin.de/christopher.pub
CB07 DA40 B0B6 571D 35E2  0DEF 87E2 92A7 13E5 DEE1

Attachment: pgprtlOYwHsH5.pgp
Description: OpenPGP digital signature

Reply via email to