source: freewrt/package/asterisk/patches/patch-Makefile@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 was ece651a, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

fix some more asterisk build issues

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1943 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.9 KB
Line 
1$FreeWRT$
2--- asterisk-1.2.15.orig/Makefile 2007-01-10 02:16:45.000000000 +0000
3+++ asterisk-1.2.15/Makefile 2007-02-12 11:08:08.000000000 +0000
4@@ -47,7 +47,7 @@ ifneq ($(findstring dont-optimize,$(MAKE
5 #K6OPT = -DK6OPT
6
7 #Tell gcc to optimize the code
8-OPTIMIZE+=-O6
9+OPTIMIZE+=-Os
10 endif
11
12 #Overwite config files on "make samples"
13@@ -361,7 +361,7 @@ ifeq ($(wildcard $(CROSS_COMPILE_TARGET)
14 ASTCFLAGS+=-DPOLLCOMPAT
15 endif
16
17-ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/dlfcn.h),)
18+ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/include/dlfcn.h),)
19 OBJS+= dlfcn.o
20 ASTCFLAGS+=-DDLFCNCOMPAT
21 endif
22@@ -387,7 +387,7 @@ ifeq ($(OSARCH),Darwin)
23 else
24 #These are used for all but Darwin
25 ASTLINK=-Wl,-E
26- SOLINK=-shared -Xlinker -x
27+ SOLINK=-shared -Xlinker -x ${LDFLAGS}
28 endif
29
30 ifeq ($(OSARCH),FreeBSD)
31@@ -420,7 +420,9 @@ else
32 HAVEDOT=no
33 endif
34
35+ifneq (${NOCRYPTO},yes)
36 LIBS+=-lssl
37+endif
38
39 _all: all
40 @echo " +--------- Asterisk Build Complete ---------+"
41@@ -444,10 +446,10 @@ endif
42 noclean: depend asterisk subdirs
43
44 editline/config.h:
45- cd editline && unset CFLAGS LIBS && CFLAGS="$(OPTIMIZE)" ./configure ; \
46+ cd editline && unset CFLAGS LIBS && CFLAGS="$(CFLAGS) $(EXTRA_CFLAGS)" ./configure ; \
47
48 editline/libedit.a: FORCE
49- cd editline && unset CFLAGS LIBS && test -f config.h || CFLAGS="$(OPTIMIZE)" ./configure
50+ cd editline && unset CFLAGS LIBS && test -f config.h || CFLAGS="$(CFLAGS) $(EXTRA_CFLAGS)" ./configure
51 $(MAKE) -C editline libedit.a
52
53 db1-ast/libdb1.a: FORCE
54@@ -530,7 +532,7 @@ asterisk: $(CYGLOADER) editline/libedit.
55 fi
56 rm -f include/asterisk/build.h.tmp
57 $(CC) -c -o buildinfo.o $(CFLAGS) buildinfo.c
58- $(CC) $(DEBUG) $(ASTOBJ) $(ASTLINK) $(OBJS) buildinfo.o $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a $(LIBS)
59+ $(CC) $(DEBUG) $(ASTOBJ) $(ASTLINK) $(EXTRA_LDFLAGS) $(OBJS) buildinfo.o $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a $(LIBS)
60
61 muted: muted.o
62 $(CC) $(AUDIO_LIBS) -o muted muted.o
Note: See TracBrowser for help on using the repository browser.