mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 03:59:01 +00:00
fix the case where menuselect.makeopts is getting generated in the same run of
"make" as the current build and some of the MENUELSELECT_CFLAGS are set in the user or global level asterisk.makeopts file git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
Makefile
4
Makefile
@@ -132,6 +132,10 @@ TOPDIR_CFLAGS=-Iinclude
|
|||||||
MOD_SUBDIR_CFLAGS=-I../include -I..
|
MOD_SUBDIR_CFLAGS=-I../include -I..
|
||||||
OTHER_SUBDIR_CFLAGS=-I../include -I..
|
OTHER_SUBDIR_CFLAGS=-I../include -I..
|
||||||
|
|
||||||
|
ifeq ($(origin MENUSELECT_CFLAGS),undefined)
|
||||||
|
MENUSELECT_CFLAGS:=$(shell echo $(or $(shell grep MENUSELECT_CFLAGS $(USER_MAKEOPTS) .),$(shell grep MENUSELECT_CFLAGS $(GLOBAL_MAKEOPTS) .)) | cut -f2 -d'=')
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(or $(findstring dont-optimize,$(MAKECMDGOALS)),$(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS))),)
|
ifeq ($(or $(findstring dont-optimize,$(MAKECMDGOALS)),$(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS))),)
|
||||||
# More GSM codec optimization
|
# More GSM codec optimization
|
||||||
# Uncomment to enable MMXTM optimizations for x86 architecture CPU's
|
# Uncomment to enable MMXTM optimizations for x86 architecture CPU's
|
||||||
|
Reference in New Issue
Block a user