mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-25 14:06:27 +00:00
don't abuse CFLAGS and LDFLAGS for build of Asterisk components, because they are also then used for non-Asterisk components (like menuselect); use our own variables instead
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44008 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -72,7 +72,6 @@ PG =
|
||||
# CCFLAGS = -c -O
|
||||
|
||||
CCFLAGS += -c -DNeedFunctionPrototypes=1 -funroll-loops $(OPTIMIZE)
|
||||
CCFLAGS += -fPIC
|
||||
|
||||
# LD = gcc
|
||||
# LDFLAGS =
|
||||
@@ -155,7 +154,7 @@ INC = $(ROOT)/inc
|
||||
DEBUG = -DNDEBUG
|
||||
######### Remove -DNDEBUG to enable assertions.
|
||||
|
||||
CFLAGS += $(PG) $(CCFLAGS) $(SASR) $(DEBUG) $(MULHACK) $(FAST) \
|
||||
ASTCFLAGS += $(PG) $(CCFLAGS) $(SASR) $(DEBUG) $(MULHACK) $(FAST) \
|
||||
$(LTP_CUT) $(WAV49) $(K6OPT) $(CCINC) -I$(INC)
|
||||
######### It's $(CC) $(CFLAGS)
|
||||
|
||||
@@ -319,10 +318,6 @@ TOAST_INSTALL_TARGETS = \
|
||||
|
||||
# Default rules
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS:-Werror=) $?
|
||||
@-mv `$(BASENAME) $@` $@ > /dev/null 2>&1
|
||||
|
||||
include $(ASTTOPDIR)/Makefile.rules
|
||||
|
||||
# Target rules
|
||||
|
||||
Reference in New Issue
Block a user