X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/915064ef9af757c1bacd6db666419cba9c354311..cbadcab30ff20dd6bea598529e49f4273dc28c60:/package/opkg/Makefile diff --git a/package/opkg/Makefile b/package/opkg/Makefile index 6a275ca81..97971b3af 100644 --- a/package/opkg/Makefile +++ b/package/opkg/Makefile @@ -36,6 +36,7 @@ define Package/opkg/description opkg knows how to install both .ipk and .deb packages. endef +TARGET_CFLAGS += $(FPIC) EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/lib EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib @@ -52,7 +53,7 @@ endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - CC=$(TARGET_CC) \ + CC="$(TARGET_CC)" \ DESTDIR="$(PKG_INSTALL_DIR)" \ all install endef