From 66ad7911c2173a546231aaa0ca19e278bcdc27f5 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Thu, 20 Sep 2007 11:20:41 +0000 Subject: [PATCH] fix build where host and target arches are abi compatible (closes: #2411) SVN-Revision: 8873 --- net/asterisk-addons-1.4.x/Makefile | 2 ++ .../patches/021-cross_configure.patch | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 net/asterisk-addons-1.4.x/patches/021-cross_configure.patch diff --git a/net/asterisk-addons-1.4.x/Makefile b/net/asterisk-addons-1.4.x/Makefile index 1824fac12..6df3532f8 100644 --- a/net/asterisk-addons-1.4.x/Makefile +++ b/net/asterisk-addons-1.4.x/Makefile @@ -79,8 +79,10 @@ $(call Package/asterisk-addons/Default/description) This package contains MySQL support modules for Asterisk. endef + EXTRA_CFLAGS:=$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) EXTRA_LDFLAGS:=$(TARGET_LDFLAGS) + ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-mysql),) EXTRA_CFLAGS+= -I$(STAGING_DIR)/usr/include/mysql EXTRA_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/mysql diff --git a/net/asterisk-addons-1.4.x/patches/021-cross_configure.patch b/net/asterisk-addons-1.4.x/patches/021-cross_configure.patch new file mode 100644 index 000000000..42470c76e --- /dev/null +++ b/net/asterisk-addons-1.4.x/patches/021-cross_configure.patch @@ -0,0 +1,12 @@ +diff -ruN asterisk-addons-1.4.2-old/menuselect/Makefile asterisk-addons-1.4.2-new/menuselect/Makefile +--- asterisk-addons-1.4.2-old/menuselect/Makefile 2007-06-06 00:01:45.000000000 +0200 ++++ asterisk-addons-1.4.2-new/menuselect/Makefile 2007-09-19 18:00:27.000000000 +0200 +@@ -42,7 +42,7 @@ + @$(MAKE) menuselect + + autoconfig.h: +- @./configure $(CONFIGURE_SILENT) CC= LD= AR= ++ @./configure $(CONFIGURE_SILENT) CC= LD= AR= LDFLAGS= + + _gmenuselect: autoconfig.h + @$(MAKE) gmenuselect -- 2.30.2