pkgsrc/mk/buildlink2/ld-logic
jlam d6df64f924 Allow for wrapper-specific transformations of arguments that occur after
the main transformations have been performed.

The ld wrapper can now accept "-Wl,*" arguments and transform them
appropriately by stripping of the -Wl and the commas.  This will obiviate
the need for logic in pkgsrc that strips away the "-Wl," depending on
whether the platform was a.out or ELF, and whether the individual package
chose to link using "cc" or "ld".
2002-09-23 01:11:39 +00:00

10 lines
172 B
Text

# $NetBSD: ld-logic,v 1.1 2002/09/23 01:11:39 jlam Exp $
case $arg in
-Wl,*)
newarg=`@ECHO@ "X$arg" | $Xsed \
-e "s|^-Wl,||g" -e "s|,| |g" \
`
arg="$newarg"
;;
esac