ref: d59610965f421c872ea4752940cb04aa063b1b64
parent: e1a27c9ac1f2f44056c65f5ebc590a2cc8385d5d
parent: 6b95de56666d5f48535ff8eb6b22ff1dccbdb98f
author: huili2 <huili2@cisco.com>
date: Mon Jan 23 11:45:01 EST 2017
Merge pull request #2650 from GuangweiWang/add-pic-option add enable PIC option on Makefile
--- a/build/x86-common.mk
+++ b/build/x86-common.mk
@@ -16,6 +16,11 @@
CFLAGS += $(CFLAGS_M32)
LDFLAGS += $(CFLAGS_M32)
ASMFLAGS_PLATFORM = -DX86_32
+ifeq ($(ENABLEPIC), Yes)
+CFLAGS += -DX86_32_PICASM
+CXXFLAGS += -DX86_32_PICASM
+ASMFLAGS += -DX86_32_PICASM
+endif
endif
ifeq ($(USE_ASM),Yes)
CFLAGS += -DX86_ASM