1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 16:43:09 +02:00

use $(FPIC) in a few places where it matters

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12225 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2008-08-06 22:10:29 +00:00
parent 05e6976da2
commit 78202d191b
12 changed files with 18 additions and 12 deletions

View File

@ -30,6 +30,7 @@ define Package/libgmp/description
signed integers, rational numbers, and floating point numbers. signed integers, rational numbers, and floating point numbers.
endef endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_VARS += CC="$(TARGET_CROSS)gcc" CONFIGURE_VARS += CC="$(TARGET_CROSS)gcc"
CONFIGURE_ARGS += \ CONFIGURE_ARGS += \
--enable-shared \ --enable-shared \

View File

@ -38,6 +38,7 @@ define Package/ipkg/description
ipkg knows how to install both .ipk and .deb packages. ipkg knows how to install both .ipk and .deb packages.
endef endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += $(DISABLE_LARGEFILE) CONFIGURE_ARGS += $(DISABLE_LARGEFILE)
define Build/Compile define Build/Compile

View File

@ -217,6 +217,8 @@ define Build/Configure
clean clean
endef endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile define Build/Compile
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \

View File

@ -29,7 +29,7 @@ define Package/libnl/description
This package contains a library for applications dealing with netlink sockets This package contains a library for applications dealing with netlink sockets
endef endef
TARGET_CFLAGS += -ffunction-sections TARGET_CFLAGS += -ffunction-sections $(FPIC)
define Build/Compile define Build/Compile
$(call Build/Compile/Default) $(call Build/Compile/Default)

View File

@ -30,6 +30,8 @@ define Package/libpcap/description
packet capture. packet capture.
endef endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \ CONFIGURE_ARGS += \
--enable-shared \ --enable-shared \
--enable-static \ --enable-static \

View File

@ -24,14 +24,6 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
ifeq ($(ARCH),powerpc)
FPIC:=-fPIC
endif
ifeq ($(ARCH),x86_64)
FPIC:=-fPIC
endif
define Package/lua/Default define Package/lua/Default
SUBMENU:=LUA SUBMENU:=LUA
SECTION:=lang SECTION:=lang
@ -95,7 +87,7 @@ endef
define Build/Configure define Build/Configure
endef endef
TARGET_CFLAGS += -DLUA_USE_LINUX TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC)
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
@ -104,7 +96,7 @@ define Build/Compile
AR="$(TARGET_CROSS)ar rcu" \ AR="$(TARGET_CROSS)ar rcu" \
RANLIB="$(TARGET_CROSS)ranlib" \ RANLIB="$(TARGET_CROSS)ranlib" \
INSTALL_ROOT=/usr \ INSTALL_ROOT=/usr \
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(FPIC)" \ CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
MYLDFLAGS="$(TARGET_LDFLAGS)" \ MYLDFLAGS="$(TARGET_LDFLAGS)" \
PKG_VERSION=$(PKG_VERSION) \ PKG_VERSION=$(PKG_VERSION) \
all linux all linux

View File

@ -28,6 +28,8 @@ endef
define Build/Configure define Build/Configure
endef endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile define Build/Compile
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)

View File

@ -29,6 +29,8 @@ define Build/Prepare
$(CP) ./src/* $(PKG_BUILD_DIR) $(CP) ./src/* $(PKG_BUILD_DIR)
endef endef
TARGET_CFLAGS += $(FPIC)
define Build/InstallDev define Build/InstallDev
mkdir -p $(1)/usr/lib mkdir -p $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libnvram*.so $(1)/usr/lib/ $(CP) $(PKG_BUILD_DIR)/libnvram*.so $(1)/usr/lib/

View File

@ -89,6 +89,8 @@ define Build/Configure
) )
endef endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile define Build/Compile
rm -rf $(PKG_INSTALL_DIR) rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR)

View File

@ -36,6 +36,7 @@ define Package/opkg/description
opkg knows how to install both .ipk and .deb packages. opkg knows how to install both .ipk and .deb packages.
endef endef
TARGET_CFLAGS += $(FPIC)
EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/lib 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 EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib

View File

@ -47,6 +47,7 @@ endef
define Build/Configure define Build/Configure
endef endef
TARGET_CFLAGS += $(FPIC)
UCI_MAKEOPTS = \ UCI_MAKEOPTS = \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
COPTS="$(TARGET_CFLAGS)" \ COPTS="$(TARGET_CFLAGS)" \

View File

@ -29,7 +29,7 @@ define Build/Configure
(cd $(PKG_BUILD_DIR); \ (cd $(PKG_BUILD_DIR); \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \ LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
CFLAGS="$(TARGET_CFLAGS) -fPIC $(CFLAGS_LARGEFILE)" \ CFLAGS="$(TARGET_CFLAGS) $(FPIC) $(CFLAGS_LARGEFILE)" \
UNAME_S="Linux" \ UNAME_S="Linux" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \