summaryrefslogtreecommitdiff
path: root/data/libresolv/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/libresolv/make.sh')
-rw-r--r--data/libresolv/make.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/libresolv/make.sh b/data/libresolv/make.sh
index 96cb9c2eb..874174bc2 100644
--- a/data/libresolv/make.sh
+++ b/data/libresolv/make.sh
@@ -1,6 +1,10 @@
pkg:extract
cd *
+pkg:patch
cp -a "${PKG_DATA}"/*.[ch] .
-arm-apple-darwin-gcc -fno-common !(dns_async).c -o libresolv.dylib -dynamiclib -I. -DkDNSServiceFlagsReturnIntermediates=0x1000 -linfo -install_name /usr/lib/libresolv.dylib
+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