aboutsummaryrefslogtreecommitdiffstats
path: root/package/asterisk/patches/asterisk-1.2.0-Makefile.patch
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-12-15 08:22:57 +0000
committerNicolas Thill <nico@openwrt.org>2005-12-15 08:22:57 +0000
commit722ba092808a3780d948830c8e9b4f8b66fd54a2 (patch)
treedc48ac46f34f12feec19725f6c93d3ac07341851 /package/asterisk/patches/asterisk-1.2.0-Makefile.patch
parent448eb0977cff7800c7738edc5829a0949e39d976 (diff)
downloadupstream-722ba092808a3780d948830c8e9b4f8b66fd54a2.tar.gz
upstream-722ba092808a3780d948830c8e9b4f8b66fd54a2.tar.bz2
upstream-722ba092808a3780d948830c8e9b4f8b66fd54a2.zip
update asterisk to new upstream release (v1.2.1)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2682 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/asterisk/patches/asterisk-1.2.0-Makefile.patch')
-rw-r--r--package/asterisk/patches/asterisk-1.2.0-Makefile.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/package/asterisk/patches/asterisk-1.2.0-Makefile.patch b/package/asterisk/patches/asterisk-1.2.0-Makefile.patch
new file mode 100644
index 0000000000..2b4afa26e5
--- /dev/null
+++ b/package/asterisk/patches/asterisk-1.2.0-Makefile.patch
@@ -0,0 +1,54 @@
+diff -ruN asterisk-1.2.0-old/Makefile asterisk-1.2.0-new/Makefile
+--- asterisk-1.2.0-old/Makefile 2005-11-16 21:23:53.000000000 +0100
++++ asterisk-1.2.0-new/Makefile 2005-12-04 23:01:16.000000000 +0100
+@@ -341,16 +339,6 @@
+ netsock.o slinfactory.o ast_expr2.o ast_expr2f.o \
+ cryptostub.o
+
+-ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/sys/poll.h),)
+- OBJS+= poll.o
+- ASTCFLAGS+=-DPOLLCOMPAT
+-endif
+-
+-ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/dlfcn.h),)
+- OBJS+= dlfcn.o
+- ASTCFLAGS+=-DDLFCNCOMPAT
+-endif
+-
+ ifeq ($(OSARCH),Linux)
+ LIBS+=-ldl -lpthread -lncurses -lm -lresolv #-lnjamd
+ else
+@@ -401,7 +389,9 @@
+ HAVEDOT=no
+ endif
+
++ifneq ($(NOCRYPTO),yes)
+ LIBS+=-lssl
++endif
+
+ INSTALL=install
+
+@@ -430,12 +420,12 @@
+ cd editline && unset CFLAGS LIBS && ./configure ; \
+
+ editline/libedit.a: FORCE
+- cd editline && unset CFLAGS LIBS && test -f config.h || ./configure
++ cd editline && unset CFLAGS LIBS && test -f config.h || CFLAGS="$(OPTIMIZE) $(EXTRA_CFLAGS)" LDFLAGS="$(EXTRA_LDFLAGS)" ./configure
+ $(MAKE) -C editline libedit.a
+
+ db1-ast/libdb1.a: FORCE
+ @if [ -d db1-ast ]; then \
+- $(MAKE) -C db1-ast libdb1.a ; \
++ $(MAKE) OORG="$(OPTIMIZE)" -C db1-ast libdb1.a ; \
+ else \
+ echo "You need to do a cvs update -d not just cvs update"; \
+ exit 1; \
+@@ -513,7 +503,7 @@
+ fi
+ rm -f include/asterisk/build.h.tmp
+ $(CC) -c -o buildinfo.o $(CFLAGS) buildinfo.c
+- $(CC) $(DEBUG) $(ASTOBJ) $(ASTLINK) $(OBJS) buildinfo.o $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a $(LIBS)
++ $(CC) $(DEBUG) $(ASTOBJ) $(ASTLINK) $(OBJS) buildinfo.o $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a $(EXTRA_LDFLAGS) $(LIBS)
+
+ muted: muted.o
+ $(CC) $(AUDIO_LIBS) -o muted muted.o