6 # Skip script during installhdrs
7 if [ "$ACTION" == installhdrs
]; then exit 0; fi
9 ARCHIVES
=(Platform Base FreeBSD FreeBSD_gcc NetBSD TRE vCancelable vDarwinExtsn vDarwinExtsnCancelable vPre1050 vLegacy vInode32
)
11 NORMAL_LIST
="$BUILT_PRODUCTS_DIR/normal.linklist"
12 DEBUG_LIST
="$BUILT_PRODUCTS_DIR/debug.linklist"
13 INTERPOSABLE_LIST
="$DERIVED_FILES_DIR/interposable.list"
17 rm -f $INTERPOSABLE_LIST
19 for x
in ${ARCHIVES[@]}; do
20 nm
-AUamgf "$BUILT_PRODUCTS_DIR/lib${x}.a" 2>/dev
/null
| \
21 grep '__TEXT,__text' | \
22 grep -v '\[symbol resolver\]' | \
23 grep -vE '\$VARIANT\$(m|u)p' | \
24 awk '{ print $NF }' >> $INTERPOSABLE_LIST
26 echo "-l$x" >> $NORMAL_LIST
27 echo "-l${x}_debug" >> $DEBUG_LIST
30 touch "$BUILT_PRODUCTS_DIR/deps.c"