pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ocaml ocaml: honor LDFLAGS in one more place to f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d06c6dbfbb9e
branches:  trunk
changeset: 443339:d06c6dbfbb9e
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Dec 10 21:37:07 2020 +0000

description:
ocaml: honor LDFLAGS in one more place to fix RELRO builds

>From jaapb, thanks!

diffstat:

 lang/ocaml/distinfo                              |   3 ++-
 lang/ocaml/patches/patch-otherlibs_unix_Makefile |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 69dfa8a923dd -r d06c6dbfbb9e lang/ocaml/distinfo
--- a/lang/ocaml/distinfo       Thu Dec 10 20:35:45 2020 +0000
+++ b/lang/ocaml/distinfo       Thu Dec 10 21:37:07 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.138 2020/12/09 10:33:04 jaapb Exp $
+$NetBSD: distinfo,v 1.139 2020/12/10 21:37:07 wiz Exp $
 
 SHA1 (ocaml-4.11.1.tar.gz) = a3f3d74a43a3d0054f0d0162522499f7d8958560
 RMD160 (ocaml-4.11.1.tar.gz) = 6bdd83aeab8a074cfeffa475fe2db72cbca2d6cf
@@ -16,6 +16,7 @@
 SHA1 (patch-otherlibs_Makefile.otherlibs.common) = 05f14ad2635bfd2ded98ef38ac6e7578b5cfc08e
 SHA1 (patch-otherlibs_systhreads_Makefile) = ff2cf90527bda37474097bb576bccbf7329c4f1d
 SHA1 (patch-otherlibs_systhreads_st__stubs.c) = 3c0aa73f0e128646c01ed3855ee9c5645d5fa3f1
+SHA1 (patch-otherlibs_unix_Makefile) = ebcd541dc3b425c96b00f457c4779bd35976c3f4
 SHA1 (patch-runtime_Makefile) = 6c70b68791e4c074179aa27dfafb398646b59dcb
 SHA1 (patch-runtime_amd64.S) = d4c33cb14c107ed03bf6a3704bbfe7c2799a048e
 SHA1 (patch-testsuite_tests_lib-systhreads_testyield.ml) = 0f6d35e030de168c6f4aeb126055065ed47878aa
diff -r 69dfa8a923dd -r d06c6dbfbb9e lang/ocaml/patches/patch-otherlibs_unix_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ocaml/patches/patch-otherlibs_unix_Makefile  Thu Dec 10 21:37:07 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-otherlibs_unix_Makefile,v 1.1 2020/12/10 21:37:07 wiz Exp $
+
+Honor LDFLAGS to fix RELRO build.
+
+--- otherlibs/unix/Makefile.orig       2020-09-01 12:47:58.000000000 +0000
++++ otherlibs/unix/Makefile
+@@ -20,7 +20,7 @@ LIBNAME=unix
+ EXTRACAMLFLAGS=-nolabels
+ 
+ # dllunix.so particularly requires libm for modf symbols
+-LDOPTS=$(NATIVECCLIBS)
++LDOPTS=$(NATIVECCLIBS) "$(LDFLAGS)"
+ 
+ COBJS=accept.o access.o addrofstr.o alarm.o bind.o channels.o chdir.o \
+   chmod.o chown.o chroot.o close.o fsync.o closedir.o connect.o cst2constr.o \



Home | Main Index | Thread Index | Old Index