When extracting -R... from the Fortran link line, prefix it with -Wl

before passing it again to CC.
This commit is contained in:
joerg 2013-10-27 20:31:21 +00:00
parent 3dc03fd067
commit b627c8a56d
2 changed files with 18 additions and 4 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.10 2009/12/10 17:10:14 drochner Exp $
$NetBSD: distinfo,v 1.11 2013/10/27 20:31:21 joerg Exp $
SHA1 (HDF4.2r4.tar.gz) = 000fa1be9c355c490cceed786feeb269a0d355a7
RMD160 (HDF4.2r4.tar.gz) = 13274858f1fa0c339fab83b1f9c37314bd10d624
@ -9,4 +9,4 @@ SHA1 (patch-ao) = cf461ca847ddef05c4876fe3527beda3242ee2f2
SHA1 (patch-ap) = 18a209229a60742a73c720d55f558949285351f2
SHA1 (patch-ar) = 5fbb6e8c56ccf05db0217e9551a0c72ecd9f5c06
SHA1 (patch-as) = b4fa7cd3bcafd75c9bfc045c2849bde21becd2de
SHA1 (patch-ba) = 8c58817507b6635c566acc784c9ddec32a380d2b
SHA1 (patch-ba) = 33e79d38ce68540308445f709f5cbafb1b917d05

View file

@ -1,7 +1,21 @@
$NetBSD: patch-ba,v 1.3 2006/01/09 19:27:19 joerg Exp $
$NetBSD: patch-ba,v 1.4 2013/10/27 20:31:21 joerg Exp $
--- configure.orig 2005-02-08 18:29:27.000000000 +0000
--- configure.orig 2009-01-21 02:44:10.000000000 +0000
+++ configure
@@ -5057,7 +5057,12 @@ fi
done
;;
- -[lLR]*)
+ -R*)
+ ac_arg="-Wl,$ac_arg"
+ shift
+ set X $ac_arg "$@"
+ ;;
+ -[lLR]*|-Wl*)
ac_exists=false
for ac_i in $ac_cv_f77_libs; do
if test x"$ac_arg" = x"$ac_i"; then
@@ -7515,6 +7515,8 @@ case "$host" in
mips*-sgi-irix4*) BAR="irix4" ;;
*-linux*) BAR="linux" ;;