1 # $NetBSD: cmd-sink-osf1-ld,v 1.1 2004/11/20 04:37:08 grant Exp $
3 # Empty out the command buffer and build up the command line in $cmd.
5 while ! queue_is_empty cmdbuf; do
7 $debug_log $wrapperlog " (cmd-sink-osf1-ld) pop: $arg"
9 ##############################################################
10 # OSF1 ld doesn't support multiple rpath parameters, accumulate
11 # them into a single -rpath /path1:/path2:...:pathn
12 ##############################################################
16 "") osf1runpath="$dir" ;;
17 *) osf1runpath="$osf1runpath:$dir" ;;
19 $debug_log $wrapperlog " (cmd-sink-osf1-ld) drop: $dir [adding to osf1runpath]"
21 -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*)
24 -Wl,-R*) R="-Wl,-R" ;;
25 -Wl,-rpath,*) R="-Wl,-rpath," ;;
26 -Wl,-rpath-link,*) R="-Wl,-rpath-link," ;;
27 -Wl,--rpath,*) R="-Wl,--rpath," ;;
31 "") osf1runpath="$dir" ;;
32 *) osf1runpath="$osf1runpath:$dir" ;;
34 $debug_log $wrapperlog " (cmd-sink-osf1-ld) drop: $dir [adding to osf1runpath]"
37 arg="-Wl,-soname"${arg#"-Wl,-h"}
38 $debug_log $wrapperlog " (cmd-sink-osf1-ld) pop: $arg"
43 $debug_log $wrapperlog " (cmd-sink-osf1-ld) pop: $arg"
52 if $test -n "$osf1runpath"; then
54 $debug_log $wrapperlog " (cmd-sink-osf1-ld) pop: $arg"
57 $debug_log $wrapperlog " (cmd-sink-osf1-ld) pop: $arg [aggregate]"