3 # Copyright © 2011-2012, 2022 Nick Bowler
5 # Determine the list of exported symbols from archives or (libtool) object
8 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
9 # This is free software: you are free to do what the fuck you want to.
10 # There is NO WARRANTY, to the extent permitted by law.
18 case $arg in /*) :;; *) arg
=.
/$arg ;; esac
24 dir
=`expr "$arg" : '\(.*\)/'`
25 if test x
"$pic_object" != x
"none"; then
26 OBJS
="$OBJS $dir/$pic_object"
28 if test x
"$non_pic_object" != x
"none"; then
29 OBJS
="$OBJS $dir/$non_pic_object"
44 { { @NM@ $OBJS; } 3>&-
45 echo "(exit $?) || exit $?" >&3
46 } | { { @GLOBAL_SYMBOL_PIPE@; } 3>&-
47 echo "(exit $?) || exit $?" >&3
48 } | { { @SED@ 's/^.* //'; } 3>&-
49 echo "(exit $?) || exit $?" >&3
50 } | { { LC_ALL=C sort -u; } 3>&-
51 echo "(exit $?) || exit $?" >&3