tiff: remove $(FPIC) from TARGET_CFLAGS
authorSebastian Kemper <sebastian_ml@gmx.net>
Sat, 24 Feb 2018 10:56:02 +0000 (11:56 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sat, 24 Feb 2018 10:56:03 +0000 (11:56 +0100)
tiff already makes sure that the compiler emits position-independent
code. Adding $(FPIC) makes no difference. In addition the tiff build
system puts its own flag behind the CFLAGS, overriding whatever was set
before.

Also with $(FPIC) in CFLAGS even the tiff utils get compiled with PIC,
which us undesirable.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libs/tiff/Makefile

index 1f28ab14804e479cdc931c9b0d87260d721db1cb..78d9312683bb74024ff16ce8a7bb8d4abff2c759 100644 (file)
@@ -58,8 +58,6 @@ $(call Package/tiff/Default)
   DEPENDS:=+libtiff
 endef
 
-TARGET_CFLAGS += $(FPIC)
-
 define Build/Configure
        $(call Build/Configure/Default, \
                $(if $(CONFIG_PACKAGE_libtiffxx), \