use $(FPIC) in a few places where it matters
[openwrt.git] / package / ipkg / Makefile
index 8b3b5c87f73b38ce38b0b8b9aa9518011e7874e0..d6e2271ceab3e8583de553d8207c1a73906023dd 100644 (file)
@@ -38,11 +38,12 @@ define Package/ipkg/description
  ipkg knows how to install both .ipk and .deb packages.
 endef
 
+TARGET_CFLAGS += $(FPIC)
 CONFIGURE_ARGS += $(DISABLE_LARGEFILE)
 
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
-               CC=$(TARGET_CC) \
+               CC="$(TARGET_CC)" \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
 endef