summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-05-05 13:49:41 +0000
committernia <nia@pkgsrc.org>2022-05-05 13:49:41 +0000
commit54d2e8efbd0870b1d4ee2372f6b51cb08e6e1952 (patch)
treed103c71699dc83a0cadcdb515f30f1d855607c9d
parent6aa84e39fb3e86d044b248186b208fb4b553cdab (diff)
downloadpkgsrc-54d2e8efbd0870b1d4ee2372f6b51cb08e6e1952.tar.gz
rexx-regina: Respect LDFLAGS when linking
-rw-r--r--lang/rexx-regina/distinfo4
-rw-r--r--lang/rexx-regina/patches/patch-aa36
2 files changed, 34 insertions, 6 deletions
diff --git a/lang/rexx-regina/distinfo b/lang/rexx-regina/distinfo
index e6dc65b56b0..37e26720f97 100644
--- a/lang/rexx-regina/distinfo
+++ b/lang/rexx-regina/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.7 2021/10/26 10:51:53 nia Exp $
+$NetBSD: distinfo,v 1.8 2022/05/05 13:49:41 nia Exp $
BLAKE2s (regina301.zip) = 527b9e194f531297f70eae2af5d83f31ea03a4d8d68d05ff5eb1cc21fe073239
SHA512 (regina301.zip) = ddf984c4a777728bd1043ab6357c3d5f2a7bc6828312afa6e39562499b9e08e2bc203e95bbef9965691553a6e5a37124521f1a27dfb5d06816255c53d4f23167
Size (regina301.zip) = 871017 bytes
-SHA1 (patch-aa) = 9c6f6bd372afd4278afe81e1fcbaed2ba40eb047
+SHA1 (patch-aa) = 83e2f07c5d936607ff764eb6a5ff960078d03c03
SHA1 (patch-ab) = 7cc785ea3b37d67a5ccecea64b63787c7b0f2ff6
diff --git a/lang/rexx-regina/patches/patch-aa b/lang/rexx-regina/patches/patch-aa
index b96ff98749e..60dd6c0d619 100644
--- a/lang/rexx-regina/patches/patch-aa
+++ b/lang/rexx-regina/patches/patch-aa
@@ -1,10 +1,38 @@
-$NetBSD: patch-aa,v 1.2 2015/12/29 23:34:54 dholland Exp $
+$NetBSD: patch-aa,v 1.3 2022/05/05 13:49:41 nia Exp $
Don't use the root /etc. XXX: it shouldn't use the etc in PREFIX either...
---- configure 2002/09/02 17:06:11 1.1
-+++ configure 2002/09/02 17:07:26
-@@ -3598,7 +3598,7 @@
+--- configure.orig 2002-05-19 10:06:07.000000000 +0000
++++ configure
+@@ -3360,10 +3360,10 @@ return(0);
+ }
+ EOF
+ if { (eval echo configure:3363: \"$mh_compile\") 1>&5; (eval $mh_compile) 2>&5; } && test -s conftest.o; then
+- mh_dyn_link='ld -shared -o conftest.so.1.0 conftest.o -lc 1>&5'
++ mh_dyn_link='${CC} ${LDFLAGS} -shared -o conftest.so.1.0 conftest.o -lc 1>&5'
+ # mh_dyn_link='${CC} -Wl,-shared -o conftest.so.1.0 conftest.o -lc 1>&AC_FD_CC'
+ if { (eval echo configure:3366: \"$mh_dyn_link\") 1>&5; (eval $mh_dyn_link) 2>&5; } && test -s conftest.so.1.0; then
+- SHL_LD="ld -shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc"
++ SHL_LD="${CC} ${LDFLAGS} -shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc"
+ # SHL_LD="${CC} -Wl,-shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc"
+ else
+ mh_dyn_link='ld -G -o conftest.so.1.0 conftest.o 1>&5'
+@@ -3421,11 +3421,11 @@ return(0);
+ }
+ EOF
+ if { (eval echo configure:3424: \"$mh_compile\") 1>&5; (eval $mh_compile) 2>&5; } && test -s conftest.o; then
+- mh_dyn_link='ld -shared -o conftest.rxlib conftest.o -lc 1>&5'
++ mh_dyn_link='${CC} ${LDFLAGS} -shared -o conftest.rxlib conftest.o -lc 1>&5'
+ # mh_dyn_link='${CC} -Wl,-shared -o conftest.rxlib conftest.o -lc 1>&AC_FD_CC'
+ if { (eval echo configure:3427: \"$mh_dyn_link\") 1>&5; (eval $mh_dyn_link) 2>&5; } && test -s conftest.rxlib; then
+- LD_RXLIB_A1="ld -shared"
+- LD_RXLIB_A2="ld -shared"
++ LD_RXLIB_A1="${CC} ${LDFLAGS} -shared"
++ LD_RXLIB_A2="${CC} ${LDFLAGS} -shared"
+ # LD_RXLIB1="${CC} -Wl,-shared"
+ LD_RXLIB_B1="-L. -l${SHLFILE}"
+ LD_RXLIB_B2="-L. -l${SHLFILE}"
+@@ -3598,7 +3598,7 @@ cat >> confdefs.h <<\EOF
EOF