mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 09:58:23 +08:00
[Makefile] use -fPIC for all architectures
This commit is contained in:
+1
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user