pkgsrc/devel/libtool/patches/patch-ab
rh 6d18f63ecc Prepend '-Wl,' to linker flags so compiler frontend doesn't choke on
unknown linker switches.  Patch provided by Dave Sainty in private mail.
Bump libtool to 1.3.5nb2
2000-06-04 16:46:46 +00:00

29 lines
825 B
Text

$NetBSD: patch-ab,v 1.9 2000/06/04 16:46:47 rh Exp $
--- ltmain.in.orig Sat May 27 03:53:15 2000
+++ ltmain.in Thu Jun 1 11:21:17 2000
@@ -1154,6 +1154,24 @@
continue
;;
+ -Wl,*)
+ args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
+ arg=
+ IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ case "$flag" in
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ flag="\"$flag\""
+ ;;
+ esac
+ arg="$arg $wl$flag"
+ linkopts="$linkopts $wl$flag"
+ done
+ IFS="$save_ifs"
+ arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
+ ;;
+
# Some other compiler flag.
-* | +*)
# Unknown arguments in both finalize_command and compile_command need