Added -fPIC to CFLAGS.
This commit is contained in:
parent
738d1fa5f1
commit
d61070d627
2
Makefile
2
Makefile
|
@ -31,7 +31,7 @@ PROC=$(shell uname -m)
|
|||
|
||||
DEBUG=-g #-pg
|
||||
INCLUDE=-I$(ASTERISK_HEADER_DIR)
|
||||
CFLAGS=-pipe -Wall -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE
|
||||
CFLAGS=-pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE
|
||||
CFLAGS+=-O6
|
||||
CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
|
||||
CFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi)
|
||||
|
|
Loading…
Reference in New Issue