source: freewrt/package/asterisk/patches/asterisk-1.2.0-Makefile.patch@ 428f140

freewrt_1_0 freewrt_2_0
Last change on this file since 428f140 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.7 KB
  • asterisk-1.2.

    diff -ruN asterisk-1.2.0-old/Makefile asterisk-1.2.0-new/Makefile
    old new  
    341339        netsock.o slinfactory.o ast_expr2.o ast_expr2f.o \
    342340        cryptostub.o
    343341
    344 ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/sys/poll.h),)
    345   OBJS+= poll.o
    346   ASTCFLAGS+=-DPOLLCOMPAT
    347 endif
    348 
    349 ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/dlfcn.h),)
    350   OBJS+= dlfcn.o
    351   ASTCFLAGS+=-DDLFCNCOMPAT
    352 endif
    353 
    354342ifeq ($(OSARCH),Linux)
    355343  LIBS+=-ldl -lpthread -lncurses -lm -lresolv  #-lnjamd
    356344else
     
    401389  HAVEDOT=no
    402390endif
    403391
     392ifneq ($(NOCRYPTO),yes)
    404393LIBS+=-lssl
     394endif
    405395
    406396INSTALL=install
    407397
     
    430420        cd editline && unset CFLAGS LIBS && ./configure ; \
    431421
    432422editline/libedit.a: FORCE
    433         cd editline && unset CFLAGS LIBS && test -f config.h || ./configure
     423        cd editline && unset CFLAGS LIBS && test -f config.h || CFLAGS="$(OPTIMIZE) $(EXTRA_CFLAGS)" LDFLAGS="$(EXTRA_LDFLAGS)" ./configure
    434424        $(MAKE) -C editline libedit.a
    435425
    436426db1-ast/libdb1.a: FORCE
    437427        @if [ -d db1-ast ]; then \
    438                 $(MAKE) -C db1-ast libdb1.a ; \
     428                $(MAKE) OORG="$(OPTIMIZE)" -C db1-ast libdb1.a ; \
    439429        else \
    440430                echo "You need to do a cvs update -d not just cvs update"; \
    441431                exit 1; \
     
    513503        fi
    514504        rm -f include/asterisk/build.h.tmp
    515505        $(CC) -c -o buildinfo.o $(CFLAGS) buildinfo.c
    516         $(CC) $(DEBUG) $(ASTOBJ) $(ASTLINK) $(OBJS) buildinfo.o $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a $(LIBS)
     506        $(CC) $(DEBUG) $(ASTOBJ) $(ASTLINK) $(OBJS) buildinfo.o $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a $(EXTRA_LDFLAGS) $(LIBS)
    517507
    518508muted: muted.o
    519509        $(CC) $(AUDIO_LIBS) -o muted muted.o
Note: See TracBrowser for help on using the repository browser.