[Makefile] use -fPIC for all architectures

This commit is contained in:
Felix Ruess
2013-04-22 01:34:32 +02:00
parent 09c97dd6c4
commit cf5a44a81b
7 changed files with 11 additions and 61 deletions
+1 -8
View File
@@ -45,20 +45,13 @@ Q=@
# End of configuration part.
#
LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
FPIC = -fPIC
else
FPIC =
endif
INCLUDES += -I $(shell $(OCAMLC) -where)
CFLAGS = -W -Wall
CFLAGS += $(INCLUDES)
CFLAGS += $($(TARGET).CFLAGS)
CFLAGS += $(LOCAL_CFLAGS)
CFLAGS += $(FPIC)
CFLAGS += -fPIC
CFLAGS += -O2
CFLAGS += -g
CFLAGS += -std=gnu99