Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Habbie/5466896 to your computer and use it in GitHub Desktop.
Save Habbie/5466896 to your computer and use it in GitHub Desktop.
Build fix for pgsqlbackend @ FreeBSD
diff -rNu pdns-2.9.21-svn.20060819.884/configure.in pdns-2.9.21-svn.20060819.884-fix/configure.in
--- pdns-2.9.21-svn.20060819.884/configure.in Sat Aug 19 14:35:36 2006
+++ pdns-2.9.21-svn.20060819.884-pgsqlbackend-build-freebsd/configure.in Mon Sep 18 15:44:36 2006
@@ -423,6 +423,15 @@
moduleobjects="$moduleobjects ../modules/${a}backend/$b"
done
modulelibs="$modulelibs `cat $srcdir/modules/${a}backend/OBJECTLIBS`"
+
+ if test ${a} == "gpgsql"; then
+ case "$host_os" in
+ freebsd*)
+ modulelibs=`echo $modulelibs|sed 's/-lresolv//g'`
+ modulelibs=`echo $modulelibs|sed 's/-lnsl//g'`
+ ;;
+ esac
+ fi
done
for a in $dynmodules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment