summaryrefslogtreecommitdiff
path: root/data/libresolv/make.sh
blob: a4779ed62e3fc2d3db858cc8fd35ffe1a30f7023 (plain)
1
2
3
4
5
6
7
8
pkg:setup
cp -a "${PKG_DATA}"/*.[ch] .
declare -a flags
# XXX: don't use this on darwin8
flags[${#flags[@]}]=-DNEED_PSELECT
"${PKG_TARG}-gcc" -fno-common !(dns_async).c -o libresolv.dylib -dynamiclib -I. -linfo -install_name /usr/lib/libresolv.dylib "${flags[@]}"
pkg: mkdir -p /usr/lib
pkg: cp -a libresolv.dylib /usr/lib