Skip to content

Instantly share code, notes, and snippets.

@Habbie
Created April 26, 2013 11:47
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/5466897 to your computer and use it in GitHub Desktop.
Save Habbie/5466897 to your computer and use it in GitHub Desktop.
Updated patch for 2.9.22-rc1, with different approach so sed isn't required anylonger
diff -rNu pdns-2.9.22-rc1/configure.in pdns-2.9.22-rc1-freebsd_gpgsql/configure.in
--- pdns-2.9.22-rc1/configure.in Sun Nov 16 21:01:29 2008
+++ pdns-2.9.22-rc1-freebsd_gpgsql/configure.in Wed Nov 19 09:18:21 2008
@@ -515,6 +515,16 @@
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="$modulelibs -lresolv -lnsl"
+ ;;
+ esac
+ fi
done
for a in $dynmodules
diff -rNu pdns-2.9.22-rc1/modules/gpgsqlbackend/OBJECTLIBS pdns-2.9.22-rc1-freebsd_gpgsql/modules/gpgsqlbackend/OBJECTLIBS
--- pdns-2.9.22-rc1/modules/gpgsqlbackend/OBJECTLIBS Sun Feb 3 13:14:00 2008
+++ pdns-2.9.22-rc1-freebsd_gpgsql/modules/gpgsqlbackend/OBJECTLIBS Wed Nov 19 09:16:39 2008
@@ -1,3 +1,3 @@
--lpq -lssl -lcrypto -lcrypt -lresolv -lnsl
+-lpq -lssl -lcrypto -lcrypt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment