summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2009-03-16 13:45:00 +0000
committerTony Vroon <chainsaw@gentoo.org>2009-03-16 13:45:00 +0000
commit1ed975fda176ce8bd21dacce9a9f856315875226 (patch)
tree296d2444be339630144e5f9554c052bd5d636bcc /net-misc/asterisk/files
parentstable amd64, bug 262620 (diff)
downloadgentoo-2-1ed975fda176ce8bd21dacce9a9f856315875226.tar.gz
gentoo-2-1ed975fda176ce8bd21dacce9a9f856315875226.tar.bz2
gentoo-2-1ed975fda176ce8bd21dacce9a9f856315875226.zip
More Flameeyes-inspired --as-needed fixing, the NET-SNMP configure test was passing libraries in LDFLAGS and failed quite horribly. Patch added without revision bump, if this hit you the software failed to configure entirely. Reported upstream.
(Portage version: 2.1.6.7/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/asterisk/files')
-rw-r--r--net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-toolcheck-libs-not-ldflags.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-toolcheck-libs-not-ldflags.patch b/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-toolcheck-libs-not-ldflags.patch
new file mode 100644
index 000000000000..3900a5293073
--- /dev/null
+++ b/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-toolcheck-libs-not-ldflags.patch
@@ -0,0 +1,23 @@
+diff -uNr asterisk-1.6.0.6.ORIG/autoconf/ast_ext_tool_check.m4 asterisk-1.6.0.6/autoconf/ast_ext_tool_check.m4
+--- asterisk-1.6.0.6.ORIG/autoconf/ast_ext_tool_check.m4 2009-03-16 13:17:33.000000000 +0000
++++ asterisk-1.6.0.6/autoconf/ast_ext_tool_check.m4 2009-03-16 13:18:26.000000000 +0000
+@@ -20,8 +20,8 @@
+ fi
+ CPPFLAGS="${CPPFLAGS} ${$1_INCLUDE}"
+
+- saved_ldflags="${LDFLAGS}"
+- LDFLAGS="${$1_LIB}"
++ saved_libs="${LIBS}"
++ LIBS="${$1_LIB}"
+
+ AC_LINK_IFELSE(
+ [ AC_LANG_PROGRAM( [ $5 ],
+@@ -33,7 +33,7 @@
+ []
+ )
+ CPPFLAGS="${saved_cppflags}"
+- LDFLAGS="${saved_ldflags}"
++ LIBS="${saved_libs}"
+ else
+ PBX_$1=1
+ AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 libraries.])