mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
build: Pass --fno-partial-inlining to third-party when appropriate
When the gcc version is >= 8.2.1, we were already setting the --fno-partial-inlining flag for Asterisk source files to get around a gcc bug but we weren't passing the flag down to the bundled builds of pjproject and jansson. ASTERISK-28392 Change-Id: I99ede9bc35408ecd096f7d5369e8192d3dc75704
This commit is contained in:
18
third-party/pjproject/Makefile
vendored
18
third-party/pjproject/Makefile
vendored
@@ -45,6 +45,9 @@ ifeq ($(SPECIAL_TARGETS),)
|
||||
else
|
||||
$(warning ASTTOPDIR/menuselect hasn't been run yet. Can't find debug options.)
|
||||
endif
|
||||
include ../../Makefile.rules
|
||||
include ../Makefile.rules
|
||||
include Makefile.rules
|
||||
|
||||
all: _all
|
||||
install: _install
|
||||
@@ -64,20 +67,19 @@ ifeq ($(SPECIAL_TARGETS),)
|
||||
endif
|
||||
MALLOC_DEBUG_LIBS = source/pjsip-apps/lib/libasterisk_malloc_debug.a
|
||||
MALLOC_DEBUG_LDFLAGS = -L$(PJDIR)/pjsip-apps/lib -Wl,-whole-archive -lasterisk_malloc_debug -Wl,-no-whole-archive
|
||||
ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS)),)
|
||||
CF += -O3
|
||||
endif
|
||||
export CFLAGS += $(CF) -g3
|
||||
export LDFLAGS += $(CC_LDFLAGS)
|
||||
TARGETS += pjproject.symbols
|
||||
else
|
||||
all install:
|
||||
endif
|
||||
else
|
||||
include ../../Makefile.rules
|
||||
include ../Makefile.rules
|
||||
include Makefile.rules
|
||||
endif
|
||||
|
||||
include ../../Makefile.rules
|
||||
include ../Makefile.rules
|
||||
include Makefile.rules
|
||||
export PJ_CFLAGS := $(filter-out -O% -g%,$(PJ_CFLAGS))
|
||||
export CFLAGS += $(CF)
|
||||
export LDFLAGS += $(CC_LDFLAGS)
|
||||
|
||||
ECHO_PREFIX := $(ECHO_PREFIX) echo '[pjproject] '
|
||||
SHELL_ECHO_PREFIX := echo '[pjproject] '
|
||||
|
Reference in New Issue
Block a user