From: Felix Fietkau Date: Wed, 6 Aug 2008 22:43:15 +0000 (+0000) Subject: enable $(FPIC) for a few more packages X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=0fcfddc2a535f235f0e8250a923ceb6565edfb27;ds=sidebyside enable $(FPIC) for a few more packages SVN-Revision: 12228 --- diff --git a/libs/alsa-lib/Makefile b/libs/alsa-lib/Makefile index 22e695bcae..8b78787cdf 100644 --- a/libs/alsa-lib/Makefile +++ b/libs/alsa-lib/Makefile @@ -39,6 +39,7 @@ define Package/alsa-lib/description You must have enabled the ALSA support in the kernel. endef +TARGET_CFLAGS += $(FPIC) CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/apr-util/Makefile b/libs/apr-util/Makefile index 1c933711da..17c28568ea 100644 --- a/libs/apr-util/Makefile +++ b/libs/apr-util/Makefile @@ -29,6 +29,7 @@ define Package/libaprutil endef +TARGET_CFLAGS += $(FPIC) CONFIGURE_ARGS += \ --with-pgsql=no \ --with-apr="$(STAGING_DIR)/usr/bin/apr-1-config" \ diff --git a/libs/apr/Makefile b/libs/apr/Makefile index a9394dc7ac..6f6ec571ac 100644 --- a/libs/apr/Makefile +++ b/libs/apr/Makefile @@ -28,17 +28,16 @@ define Package/libapr URL:=http://apr.apache.org/ endef +TARGET_CFLAGS += $(FPIC) CONFIGURE_ARGS += \ --with-devrandom=/dev/urandom \ --disable-dso \ --enable-ipv6 CONFIGURE_VARS += \ - ac_cv_file__dev_zero=yes \ apr_cv_process_shared_works=no \ apr_cv_mutex_robust_shared=no \ apr_cv_tcp_nodelay_with_cork=yes \ - ac_cv_sizeof_ssize_t=4 \ LDFLAGS="$$$$LDFLAGS -lpthread" \ define Build/Compile diff --git a/libs/argtable/Makefile b/libs/argtable/Makefile index 90e267650f..a6fc0b7d61 100644 --- a/libs/argtable/Makefile +++ b/libs/argtable/Makefile @@ -35,6 +35,7 @@ define Package/argtable/description each argument. endef +TARGET_CFLAGS += $(FPIC) CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/avahi/Makefile b/libs/avahi/Makefile index a5371d6de4..d7980fac7e 100644 --- a/libs/avahi/Makefile +++ b/libs/avahi/Makefile @@ -100,6 +100,7 @@ $(call Package/avahi/Default/description) in a DHCP-like fashion. Especially useful on IPv6. endef +TARGET_CFLAGS += $(FPIC) CONFIGURE_ARGS+= \ --enable-shared \ --enable-static \ diff --git a/libs/axtls/Makefile b/libs/axtls/Makefile index 74538625fb..1cc87fe6ac 100644 --- a/libs/axtls/Makefile +++ b/libs/axtls/Makefile @@ -41,6 +41,8 @@ define Build/Configure $(MAKE) -C $(PKG_BUILD_DIR) oldconfig endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ CC="$(TARGET_CC)" \ diff --git a/libs/bluez-libs/Makefile b/libs/bluez-libs/Makefile index d50c21cd0e..16696a503e 100644 --- a/libs/bluez-libs/Makefile +++ b/libs/bluez-libs/Makefile @@ -29,6 +29,8 @@ CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/cgilib/Makefile b/libs/cgilib/Makefile index 9bd2d42c5c..e16731b731 100644 --- a/libs/cgilib/Makefile +++ b/libs/cgilib/Makefile @@ -30,6 +30,8 @@ endef define Build/Configure endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ $(TARGET_CONFIGURE_OPTS) \ diff --git a/libs/check/Makefile b/libs/check/Makefile index 2d240804fe..22ac2966c4 100644 --- a/libs/check/Makefile +++ b/libs/check/Makefile @@ -36,6 +36,8 @@ define Build/Configure $(call Build/Configure/Default) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install cd $(PKG_INSTALL_DIR)/usr/lib/ ; ln -s libcheck.so libcheck_pic.so diff --git a/libs/clearsilver/Makefile b/libs/clearsilver/Makefile index e1f6ba1221..e5dc2b98db 100644 --- a/libs/clearsilver/Makefile +++ b/libs/clearsilver/Makefile @@ -29,6 +29,8 @@ define Package/clearsilver/description Clearsilver is a fast, powerful, and language-neutral HTML template system. In both static content sites and dynamic HTML applications, it provides a separation between presentation code and application logic which makes working with your project easier. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --disable-wdb \ --disable-apache \ diff --git a/libs/clinkc/Makefile b/libs/clinkc/Makefile index 868f58a4ad..c3beda852d 100644 --- a/libs/clinkc/Makefile +++ b/libs/clinkc/Makefile @@ -36,6 +36,8 @@ endef # uses GNU configure +TARGET_CFLAGS += $(FPIC) + define Build/Compile chmod +x $(PKG_BUILD_DIR)/config/install-sh $(MAKE) -C $(PKG_BUILD_DIR) \ diff --git a/libs/confuse/Makefile b/libs/confuse/Makefile index 3b180400d8..80bcd6bac0 100644 --- a/libs/confuse/Makefile +++ b/libs/confuse/Makefile @@ -37,6 +37,8 @@ define Package/confuse/description libConfuse was called libcfg before, but was changed to not confuse with other similar libraries. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/curl/Makefile b/libs/curl/Makefile index 0f80736581..5bb0a0087c 100644 --- a/libs/curl/Makefile +++ b/libs/curl/Makefile @@ -46,6 +46,8 @@ define Package/libcurl TITLE:=A client-side URL transfer utility endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/cyrus-sasl/Makefile b/libs/cyrus-sasl/Makefile index 5eb0dc4020..aac46300b7 100644 --- a/libs/cyrus-sasl/Makefile +++ b/libs/cyrus-sasl/Makefile @@ -28,48 +28,46 @@ define Package/libsasl2 URL:=http://asg.web.cmu.edu/sasl/ endef -define Build/Configure - $(call Build/Configure/Default, \ - --enable-shared \ - --enable-static \ - --disable-sample \ - --enable-staticdlopen \ - --disable-java \ - --disable-alwaystrue \ - --disable-checkapop \ - --enable-cram \ - --enable-digest \ - --disable-otp \ - --disable-srp \ - --disable-srp-setpass \ - --disable-krb4 \ - --disable-gssapi \ - --disable-gss_mutexes \ - --enable-plain \ - --enable-anon \ - --disable-login \ - --disable-ntlm \ - --disable-sql \ - --with-dblib="none" \ - --without-gdbm \ - --with-devrandom="/dev/urandom" \ - --without-pam \ - --without-saslauthd \ - --without-authdaemond \ - --without-pwcheck \ - --with-ipctype=unix \ - --with-openssl="$(STAGING_DIR)/usr" \ - --without-des \ - --without-opie \ - --without-ldap \ - --without-mysql \ - --without-pgsql \ - --without-sqlite \ - --without-rc4 \ - --without-dmalloc \ - --without-sfio \ - ); -endef +TARGET_CFLAGS += $(FPIC) +CONFIGURE_ARGS += \ + --enable-shared \ + --enable-static \ + --disable-sample \ + --enable-staticdlopen \ + --disable-java \ + --disable-alwaystrue \ + --disable-checkapop \ + --enable-cram \ + --enable-digest \ + --disable-otp \ + --disable-srp \ + --disable-srp-setpass \ + --disable-krb4 \ + --disable-gssapi \ + --disable-gss_mutexes \ + --enable-plain \ + --enable-anon \ + --disable-login \ + --disable-ntlm \ + --disable-sql \ + --with-dblib="none" \ + --without-gdbm \ + --with-devrandom="/dev/urandom" \ + --without-pam \ + --without-saslauthd \ + --without-authdaemond \ + --without-pwcheck \ + --with-ipctype=unix \ + --with-openssl="$(STAGING_DIR)/usr" \ + --without-des \ + --without-opie \ + --without-ldap \ + --without-mysql \ + --without-pgsql \ + --without-sqlite \ + --without-rc4 \ + --without-dmalloc \ + --without-sfio define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/include \ diff --git a/libs/db/Makefile b/libs/db/Makefile index faafcceada..5f8abf2e21 100644 --- a/libs/db/Makefile +++ b/libs/db/Makefile @@ -74,6 +74,8 @@ define Build/Configure ); endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) diff --git a/libs/dbus-glib/Makefile b/libs/dbus-glib/Makefile index 829cddc105..30521fa467 100644 --- a/libs/dbus-glib/Makefile +++ b/libs/dbus-glib/Makefile @@ -28,6 +28,8 @@ define Package/libdbus-glib endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/expat/Makefile b/libs/expat/Makefile index a377ab8edf..7d2ab56a41 100644 --- a/libs/expat/Makefile +++ b/libs/expat/Makefile @@ -33,6 +33,8 @@ define Package/libexpat/description endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static diff --git a/libs/faad2/Makefile b/libs/faad2/Makefile index 63f91bad55..11ba48755c 100644 --- a/libs/faad2/Makefile +++ b/libs/faad2/Makefile @@ -70,6 +70,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + MAKE_FLAGS += \ DESTDIR="$(PKG_INSTALL_DIR)" \ all install \ diff --git a/libs/fcgi/Makefile b/libs/fcgi/Makefile index 8f5a7816de..0c81d7fd9a 100644 --- a/libs/fcgi/Makefile +++ b/libs/fcgi/Makefile @@ -33,6 +33,8 @@ define Package/fcgi/description server specific APIs. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/file/Makefile b/libs/file/Makefile index 3192591b9e..c7b67e3980 100644 --- a/libs/file/Makefile +++ b/libs/file/Makefile @@ -44,6 +44,8 @@ define Package/file/description a wrapper around the "magic" library. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/flac/Makefile b/libs/flac/Makefile index e84c147296..8ddabeb756 100644 --- a/libs/flac/Makefile +++ b/libs/flac/Makefile @@ -30,6 +30,8 @@ endef define Build/Configure endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lite \ $(TARGET_CONFIGURE_OPTS) \ diff --git a/libs/freetype/Makefile b/libs/freetype/Makefile index 7592c8c1a6..dd67a7b7da 100644 --- a/libs/freetype/Makefile +++ b/libs/freetype/Makefile @@ -35,6 +35,8 @@ define Package/libfreetype/description efficient and ubiquitous products. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/gd/Makefile b/libs/gd/Makefile index 399f7c6e0c..2649ee82d8 100644 --- a/libs/gd/Makefile +++ b/libs/gd/Makefile @@ -26,20 +26,20 @@ define Package/libgd URL:=http://www.boutell.com/gd/ endef -define Build/Configure - $(call Build/Configure/Default, \ - --enable-shared \ - --enable-static \ - --disable-rpath \ - --without-x \ - --without-freetype \ - --with-jpeg=$(STAGING_DIR)/usr \ - --with-png=$(STAGING_DIR)/usr \ - --without-xpm \ - , \ - LIBPNG12_CONFIG="$(STAGING_DIR)/usr/bin/libpng12-config" \ - ) -endef +CONFIGURE_ARGS += \ + --enable-shared \ + --enable-static \ + --disable-rpath \ + --without-x \ + --without-freetype \ + --with-jpeg=$(STAGING_DIR)/usr \ + --with-png=$(STAGING_DIR)/usr \ + --without-xpm + +CONFIGURE_VARS += \ + LIBPNG12_CONFIG="$(STAGING_DIR)/usr/bin/libpng12-config" + +TARGET_CFLAGS += $(FPIC) define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ diff --git a/libs/gdbm/Makefile b/libs/gdbm/Makefile index f86743bc1e..c504c05025 100644 --- a/libs/gdbm/Makefile +++ b/libs/gdbm/Makefile @@ -27,6 +27,8 @@ define Package/libgdbm URL:=http://www.gnu.org/software/gdbm/ endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/gettext/Makefile b/libs/gettext/Makefile index 0b148933bb..8121ab0474 100644 --- a/libs/gettext/Makefile +++ b/libs/gettext/Makefile @@ -27,6 +27,8 @@ define Package/libintl URL:=http://www.gnu.org/software/gettext/ endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/giflib/Makefile b/libs/giflib/Makefile index 27fbfee447..c63e9af2f1 100644 --- a/libs/giflib/Makefile +++ b/libs/giflib/Makefile @@ -25,19 +25,8 @@ define Package/giflib DEPENDS:= endef -CONFIGURE_ARGS+=--without-x - -define Build/Configure - (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \ - if [ -x $(CONFIGURE_CMD) ]; then \ - $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \ - $(CONFIGURE_VARS) \ - $(CONFIGURE_CMD) \ - $(CONFIGURE_ARGS_XTRA) \ - $(CONFIGURE_ARGS) ;\ - fi \ - ) -endef +TARGET_CFLAGS += $(FPIC) +CONFIGURE_ARGS += --without-x define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) diff --git a/libs/glib/Makefile b/libs/glib/Makefile index 024c8c8575..7f8229f16c 100644 --- a/libs/glib/Makefile +++ b/libs/glib/Makefile @@ -36,6 +36,8 @@ define Package/glib1/description as trees, hashes, and lists. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/glib2/Makefile b/libs/glib2/Makefile index 750f631047..a740b98503 100644 --- a/libs/glib2/Makefile +++ b/libs/glib2/Makefile @@ -35,6 +35,7 @@ define Package/glib2/description The GLib library of C routines endef +TARGET_CFLAGS += $(FPIC) define Build/Configure mkdir -p $(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME) diff --git a/libs/gnutls/Makefile b/libs/gnutls/Makefile index 42ee26f8b9..68a79b859b 100644 --- a/libs/gnutls/Makefile +++ b/libs/gnutls/Makefile @@ -102,6 +102,8 @@ $(call Package/gnutls/Default/description) This package contains the GnuTLS OpenSSL compatibility layer shared library. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS+= \ --enable-shared \ --enable-static \ diff --git a/libs/gsl/Makefile b/libs/gsl/Makefile index 1c52d147d4..b83e65f9af 100644 --- a/libs/gsl/Makefile +++ b/libs/gsl/Makefile @@ -32,6 +32,8 @@ define Package/libgsl/description There are over 1000 functions in total with an extensive test suite. endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) diff --git a/libs/gsm/Makefile b/libs/gsm/Makefile index e5c1ed3472..60274ff056 100644 --- a/libs/gsm/Makefile +++ b/libs/gsm/Makefile @@ -53,6 +53,8 @@ endef define Build/Configure endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) diff --git a/libs/howl/Makefile b/libs/howl/Makefile index 79d647319f..48e10c1373 100644 --- a/libs/howl/Makefile +++ b/libs/howl/Makefile @@ -90,6 +90,8 @@ define Build/Configure ); endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/id3lib/Makefile b/libs/id3lib/Makefile index a099bd89e0..9982099292 100644 --- a/libs/id3lib/Makefile +++ b/libs/id3lib/Makefile @@ -28,6 +28,8 @@ define Package/id3lib URL:=http://www.id3lib.org/ endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/iksemel/Makefile b/libs/iksemel/Makefile index 995535874c..388c469909 100644 --- a/libs/iksemel/Makefile +++ b/libs/iksemel/Makefile @@ -28,6 +28,8 @@ define Package/libiksemel DEPENDS:= +libgnutls endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/jpeg/Makefile b/libs/jpeg/Makefile index d1321eeee6..64b39a979e 100644 --- a/libs/jpeg/Makefile +++ b/libs/jpeg/Makefile @@ -41,6 +41,8 @@ define Package/jpeg-tools TITLE+= manipulation tools endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/libaio/Makefile b/libs/libaio/Makefile index d2741d74cc..0137b40e58 100644 --- a/libs/libaio/Makefile +++ b/libs/libaio/Makefile @@ -33,6 +33,8 @@ endef LIBAIO_CFLAGS:=-nostdlib -nostartfiles -I. $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) LIBAIO_SOVER:=1.0.1 +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ $(TARGET_CONFIGURE_OPTS) \ diff --git a/libs/libamsel/Makefile b/libs/libamsel/Makefile index 37da29e70c..3258995162 100644 --- a/libs/libamsel/Makefile +++ b/libs/libamsel/Makefile @@ -32,6 +32,8 @@ endef define Build/Configure endef +TARGET_CFLAGS += $(FPIC) + MAKE_FLAGS += \ CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR) -fPIC" \ LDIR=$(PKG_BUILD_DIR) \ diff --git a/libs/libao/Makefile b/libs/libao/Makefile index 76c9575087..5f9efef93e 100644 --- a/libs/libao/Makefile +++ b/libs/libao/Makefile @@ -31,16 +31,15 @@ define Package/libao/description output audio using a simple API on a wide variety of platforms. endef -define Build/Configure - $(call Build/Configure/Default, \ - --enable-shared \ - --enable-static \ - --disable-esd \ - --disable-arts \ - --disable-nas \ - --disable-polyp \ - ) -endef +CONFIGURE_ARGS += \ + --enable-shared \ + --enable-static \ + --disable-esd \ + --disable-arts \ + --disable-nas \ + --disable-polyp + +TARGET_CFLAGS += $(FPIC) define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ diff --git a/libs/libart/Makefile b/libs/libart/Makefile index eb8fed8b4e..7a86ac7c57 100644 --- a/libs/libart/Makefile +++ b/libs/libart/Makefile @@ -36,6 +36,8 @@ define Package/libart/description especially suitable for embedded applications. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static diff --git a/libs/libatomicops/Makefile b/libs/libatomicops/Makefile index 3d3721a759..26a043337f 100644 --- a/libs/libatomicops/Makefile +++ b/libs/libatomicops/Makefile @@ -38,6 +38,8 @@ define Package/libatomicops/description architectures. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/libaudiofile/Makefile b/libs/libaudiofile/Makefile index 31df245066..b6fadb829d 100644 --- a/libs/libaudiofile/Makefile +++ b/libs/libaudiofile/Makefile @@ -31,6 +31,8 @@ define Package/libaudiofile/description and raw data). endef +TARGET_CFLAGS += $(FPIC) + define Build/Configure $(call Build/Configure/Default, \ --enable-shared \ diff --git a/libs/libbfd/Makefile b/libs/libbfd/Makefile index bd115a8e39..4264ecad9e 100644 --- a/libs/libbfd/Makefile +++ b/libs/libbfd/Makefile @@ -32,6 +32,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/bfd \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/libcli/Makefile b/libs/libcli/Makefile index 8aa81b85c3..5696b5cd8a 100644 --- a/libs/libcli/Makefile +++ b/libs/libcli/Makefile @@ -32,6 +32,8 @@ define Package/libcli/description authentication and callbacks for a user-definable function tree. endef +TARGET_CFLAGS += $(FPIC) + MAKE_FLAGS += \ OPTIM="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS)" \ diff --git a/libs/libdaemon/Makefile b/libs/libdaemon/Makefile index 694827ac15..9b203a31c4 100644 --- a/libs/libdaemon/Makefile +++ b/libs/libdaemon/Makefile @@ -46,6 +46,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/libdlna/Makefile b/libs/libdlna/Makefile index 2f4f029e0a..39767b3ff0 100644 --- a/libs/libdlna/Makefile +++ b/libs/libdlna/Makefile @@ -52,6 +52,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/libdnet/Makefile b/libs/libdnet/Makefile index 5bd4a72b15..436cde416e 100644 --- a/libs/libdnet/Makefile +++ b/libs/libdnet/Makefile @@ -43,6 +43,8 @@ define Package/pydnet/description low-level networking routines. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/libdvbpsi4/Makefile b/libs/libdvbpsi4/Makefile index af09790f22..95fc451942 100644 --- a/libs/libdvbpsi4/Makefile +++ b/libs/libdvbpsi4/Makefile @@ -30,6 +30,8 @@ define Package/libdvbpsi4/description decoding and generating. endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(call Build/Compile/Default, \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/libelf/Makefile b/libs/libelf/Makefile index 7be041581a..50b9e1af2f 100644 --- a/libs/libelf/Makefile +++ b/libs/libelf/Makefile @@ -25,6 +25,8 @@ define Package/libelf URL:=http://www.stud.uni-hannover.de/~michael/software/ endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/libevent/Makefile b/libs/libevent/Makefile index 7d8b66208c..8f45be0083 100644 --- a/libs/libevent/Makefile +++ b/libs/libevent/Makefile @@ -38,6 +38,8 @@ define Package/libevent/description the event loop. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/libexif/Makefile b/libs/libexif/Makefile index 945c4bc22e..edab42dd3b 100644 --- a/libs/libexif/Makefile +++ b/libs/libexif/Makefile @@ -35,6 +35,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/libffi-sable/Makefile b/libs/libffi-sable/Makefile index cfb139650f..2d6e9c11f0 100644 --- a/libs/libffi-sable/Makefile +++ b/libs/libffi-sable/Makefile @@ -33,6 +33,8 @@ define Package/libffi-sable/description time. endef +TARGET_CFLAGS += $(FPIC) + define Build/Configure $(call Build/Configure/Default, \ --enable-shared \ diff --git a/libs/libgcrypt/Makefile b/libs/libgcrypt/Makefile index 4158f641af..2da5aad815 100644 --- a/libs/libgcrypt/Makefile +++ b/libs/libgcrypt/Makefile @@ -39,6 +39,8 @@ define Package/libgcrypt/description RC2, SEED, Camellia, CRC, MD4, TIGER-192, Whirlpool, ElGamal, ECC). endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS+= \ --enable-shared \ --enable-static \ diff --git a/libs/libgpg-error/Makefile b/libs/libgpg-error/Makefile index 55117848a5..4e0e3153c1 100644 --- a/libs/libgpg-error/Makefile +++ b/libs/libgpg-error/Makefile @@ -38,6 +38,8 @@ define Package/libgpg-error/description future. endef +TARGET_CFLAGS += $(FPIC) + define Build/Configure $(call Build/Configure/Default, \ --enable-shared \ diff --git a/libs/libgphoto2/Makefile b/libs/libgphoto2/Makefile index 9b7d2dccca..7a65489cea 100644 --- a/libs/libgphoto2/Makefile +++ b/libs/libgphoto2/Makefile @@ -39,6 +39,8 @@ define Package/libgphoto2-drivers TITLE:=Gphoto2 drivers for various cameras endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/libgssapi/Makefile b/libs/libgssapi/Makefile index 4dc482ce57..319d8224f8 100644 --- a/libs/libgssapi/Makefile +++ b/libs/libgssapi/Makefile @@ -29,7 +29,7 @@ define Package/libgssapi/description Support libraries - for newer nfs mount command (nfs4) endef -TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib +TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib $(FPIC) MAKE_FLAGS += \ OPT="$(TARGET_CFLAGS)" \ diff --git a/libs/libiconv/Makefile b/libs/libiconv/Makefile index e0b9b57af9..f651d475bd 100644 --- a/libs/libiconv/Makefile +++ b/libs/libiconv/Makefile @@ -27,15 +27,13 @@ define Package/libiconv URL:=http://www.gnu.org/software/libiconv/ endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ --disable-rpath \ -define Build/Configure - $(call Build/Configure/Default) -endef - define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) CC="$(TARGET_CC)" $(MAKE) -C $(PKG_BUILD_DIR) \ diff --git a/libs/libid3tag/Makefile b/libs/libid3tag/Makefile index d21ef5f1c1..e5ce456a65 100644 --- a/libs/libid3tag/Makefile +++ b/libs/libid3tag/Makefile @@ -31,6 +31,8 @@ define Package/libid3tag/description ID3v1 and the various versions of ID3v2. endef +TARGET_CFLAGS += $(FPIC) + define Build/Configure $(call Build/Configure/Default, \ --enable-shared \ diff --git a/libs/libjson-c/Makefile b/libs/libjson-c/Makefile index f713cc6157..f6b969b3a8 100644 --- a/libs/libjson-c/Makefile +++ b/libs/libjson-c/Makefile @@ -29,6 +29,8 @@ define Package/libjson/description This package contains a library for javascript object notation backends. endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/libmad/Makefile b/libs/libmad/Makefile index 30360b9d37..7c3cad3b3d 100644 --- a/libs/libmad/Makefile +++ b/libs/libmad/Makefile @@ -44,6 +44,8 @@ define Package/libmad/description Layer I, Layer II, and Layer III (i.e. MP3) - are fully implemented. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/libmcrypt/Makefile b/libs/libmcrypt/Makefile index f71b220f3a..cbf69d33b6 100644 --- a/libs/libmcrypt/Makefile +++ b/libs/libmcrypt/Makefile @@ -37,6 +37,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/libmpcdec/Makefile b/libs/libmpcdec/Makefile index 4c04bb1479..d11a029563 100644 --- a/libs/libmpcdec/Makefile +++ b/libs/libmpcdec/Makefile @@ -29,9 +29,7 @@ define Package/libmpcdec/description Musepack decoder library endef -define Build/Configure - $(call Build/Configure/Default) -endef +TARGET_CFLAGS += $(FPIC) define Build/Compile $(call Build/Compile/Default,\ diff --git a/libs/libmpd/Makefile b/libs/libmpd/Makefile index ace9fc8a0d..24fee43b41 100644 --- a/libs/libmpd/Makefile +++ b/libs/libmpd/Makefile @@ -29,6 +29,8 @@ define Package/libmpd/description It's wraps around libmpdclient and provides a higher level api. endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/libnet-1.0.x/Makefile b/libs/libnet-1.0.x/Makefile index c58aa9a351..8d381326a0 100644 --- a/libs/libnet-1.0.x/Makefile +++ b/libs/libnet-1.0.x/Makefile @@ -33,6 +33,8 @@ ifeq ($(CONFIG_BIG_ENDIAN),y) ENDIANESS:=big endif +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/libnet-1.1.x/Makefile b/libs/libnet-1.1.x/Makefile index 198d09bccf..42aea86777 100644 --- a/libs/libnet-1.1.x/Makefile +++ b/libs/libnet-1.1.x/Makefile @@ -33,6 +33,8 @@ ifeq ($(CONFIG_BIG_ENDIAN),y) ENDIANESS:=big endif +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/libnetfilter-queue/Makefile b/libs/libnetfilter-queue/Makefile index 1997b20b54..e20880ea2f 100644 --- a/libs/libnetfilter-queue/Makefile +++ b/libs/libnetfilter-queue/Makefile @@ -31,6 +31,8 @@ define Package/libnetfilter-queue/description that deprecates the old ip_queue / libipq mechanism. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-static \ --enable-shared \ diff --git a/libs/libnfnetlink/Makefile b/libs/libnfnetlink/Makefile index 2c09539e46..5b765f2f3b 100644 --- a/libs/libnfnetlink/Makefile +++ b/libs/libnfnetlink/Makefile @@ -33,6 +33,8 @@ define Package/libnfnetlink/description and/or management tools in userspace. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-static \ --enable-shared diff --git a/libs/libnfsidmap/Makefile b/libs/libnfsidmap/Makefile index bf0cc7203b..badd574e09 100644 --- a/libs/libnfsidmap/Makefile +++ b/libs/libnfsidmap/Makefile @@ -29,6 +29,8 @@ define Package/libnfsidmap/description needed for nfs-utils endef +TARGET_CFLAGS += $(FPIC) + TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib MAKE_FLAGS += \ diff --git a/libs/libnids/Makefile b/libs/libnids/Makefile index ace4ca061e..dde7df9bc0 100644 --- a/libs/libnids/Makefile +++ b/libs/libnids/Makefile @@ -42,6 +42,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ LNETLIB="-L$(STAGING_DIR)/usr/lib/libnet-1.0.x/lib -lnet" \ diff --git a/libs/libnotimpl/Makefile b/libs/libnotimpl/Makefile index cf793eefe4..e32ad7f425 100644 --- a/libs/libnotimpl/Makefile +++ b/libs/libnotimpl/Makefile @@ -34,6 +34,8 @@ define Build/Prepare mkdir -p $(PKG_BUILD_DIR) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(call cc,math) $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o diff --git a/libs/liboil/Makefile b/libs/liboil/Makefile index bfe3bf65a3..ea6f0eba8c 100644 --- a/libs/liboil/Makefile +++ b/libs/liboil/Makefile @@ -37,6 +37,8 @@ define Package/liboil/description provided by modern CPUs (Altivec, MMX, SSE, etc.). endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/libol/Makefile b/libs/libol/Makefile index 01981c2aae..0d4c2f919e 100644 --- a/libs/libol/Makefile +++ b/libs/libol/Makefile @@ -32,6 +32,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile # pass CFLAGS again to override -O2 set by configure $(MAKE) -C $(PKG_BUILD_DIR) \ diff --git a/libs/libosip2/Makefile b/libs/libosip2/Makefile index eb12963cdc..ae322a2e30 100644 --- a/libs/libosip2/Makefile +++ b/libs/libosip2/Makefile @@ -32,6 +32,8 @@ define Package/libosip2description GNU oSIP library, a Session Initiation Protocol (SIP) implementation. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS+= \ --enable-shared \ --enable-static \ diff --git a/libs/libpam/Makefile b/libs/libpam/Makefile index eb5c777226..3da0908c82 100644 --- a/libs/libpam/Makefile +++ b/libs/libpam/Makefile @@ -33,6 +33,8 @@ define Package/libpam/description endef +TARGET_CFLAGS += $(FPIC) + define Build/Configure $(call Build/Configure/Default, \ --enable-shared \ diff --git a/libs/libpng/Makefile b/libs/libpng/Makefile index 0030549c59..6ce0daf5af 100644 --- a/libs/libpng/Makefile +++ b/libs/libpng/Makefile @@ -34,6 +34,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/libreadline/Makefile b/libs/libreadline/Makefile index 2c75045fe5..1ded2788a0 100644 --- a/libs/libreadline/Makefile +++ b/libs/libreadline/Makefile @@ -44,6 +44,8 @@ endef TARGET_CPPFLAGS:=-I. -I.. $(TARGET_CPPFLAGS) +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/librpcsecgss/Makefile b/libs/librpcsecgss/Makefile index 9211717547..9b616eb2a2 100644 --- a/libs/librpcsecgss/Makefile +++ b/libs/librpcsecgss/Makefile @@ -31,7 +31,7 @@ define Package/librpcsecgss/description Support libraries - for newer nfs mount command (nfs4) endef -TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib -I$(STAGING_DIR)/usr/include/gssglue/ +TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib -I$(STAGING_DIR)/usr/include/gssglue/ $(FPIC) MAKE_FLAGS += \ OPT="$(TARGET_CFLAGS)" \ diff --git a/libs/librsync/Makefile b/libs/librsync/Makefile index 5fe3c7211f..dc8f1a81b1 100644 --- a/libs/librsync/Makefile +++ b/libs/librsync/Makefile @@ -38,6 +38,8 @@ define Build/Configure ); endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/libsamplerate/Makefile b/libs/libsamplerate/Makefile index 03ba99ec2e..0e9585f686 100644 --- a/libs/libsamplerate/Makefile +++ b/libs/libsamplerate/Makefile @@ -33,6 +33,8 @@ define Package/libsamplerate/description Converter for audio. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --disable-fftw \ diff --git a/libs/libshout/Makefile b/libs/libshout/Makefile index 45205f312d..285f3a827c 100644 --- a/libs/libshout/Makefile +++ b/libs/libshout/Makefile @@ -45,6 +45,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/libsigc++/Makefile b/libs/libsigc++/Makefile index c007a7db26..4c04c980fe 100644 --- a/libs/libsigc++/Makefile +++ b/libs/libsigc++/Makefile @@ -34,6 +34,8 @@ define Package/libsigcxx/description whether it is static or virtual. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/libsndfile/Makefile b/libs/libsndfile/Makefile index 8bca9fe46e..2295519dee 100644 --- a/libs/libsndfile/Makefile +++ b/libs/libsndfile/Makefile @@ -32,6 +32,8 @@ define Package/libsndfile/description containing sampled audio data. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --disable-flac diff --git a/libs/libtasn1/Makefile b/libs/libtasn1/Makefile index 4b8e7f4202..1c8c98daa6 100644 --- a/libs/libtasn1/Makefile +++ b/libs/libtasn1/Makefile @@ -36,6 +36,8 @@ define Package/libtasn1/description Distinguish Encoding Rules (DER) manipulation. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static diff --git a/libs/libtorrent/Makefile b/libs/libtorrent/Makefile index 2bc9f7101f..0e73e38834 100644 --- a/libs/libtorrent/Makefile +++ b/libs/libtorrent/Makefile @@ -36,6 +36,8 @@ define Package/libtorrent/description the speed of the official client. endef +TARGET_CFLAGS += $(FPIC) + # XXX: rtorrent needs encryption (--enable-openssl) CONFIGURE_ARGS+= \ --enable-shared \ diff --git a/libs/libupnp/Makefile b/libs/libupnp/Makefile index 9ebef1596f..ab7e7e161f 100644 --- a/libs/libupnp/Makefile +++ b/libs/libupnp/Makefile @@ -57,6 +57,8 @@ define Build/Configure ); endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ CCOPT="$(TARGET_CFLAGS)" \ diff --git a/libs/libusb/Makefile b/libs/libusb/Makefile index d87154bc36..ed6ad4cec8 100644 --- a/libs/libusb/Makefile +++ b/libs/libusb/Makefile @@ -32,6 +32,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/libvorbisidec/Makefile b/libs/libvorbisidec/Makefile index 1ed04cf7be..24a3ebf9a3 100644 --- a/libs/libvorbisidec/Makefile +++ b/libs/libvorbisidec/Makefile @@ -34,6 +34,8 @@ define Package/libvorbisidec/description Tremor is a decoder only. endef +TARGET_CFLAGS += $(FPIC) + define Build/Configure (cd $(PKG_BUILD_DIR); ./autogen.sh ); $(call Build/Configure/Default, \ diff --git a/libs/libxml2/Makefile b/libs/libxml2/Makefile index da986c635c..b31966e7f8 100644 --- a/libs/libxml2/Makefile +++ b/libs/libxml2/Makefile @@ -34,6 +34,7 @@ define Package/libxml2/description A library for manipulating XML and HTML resources. endef +TARGET_CFLAGS += $(FPIC) CONFIGURE_ARGS += \ --enable-shared \ diff --git a/libs/libxslt/Makefile b/libs/libxslt/Makefile index a6f81c695b..1ba4e930f1 100644 --- a/libs/libxslt/Makefile +++ b/libs/libxslt/Makefile @@ -60,6 +60,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/lzo/Makefile b/libs/lzo/Makefile index 68e278fc6f..86c216af91 100644 --- a/libs/lzo/Makefile +++ b/libs/lzo/Makefile @@ -38,6 +38,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ CFLAGS_O="$(TARGET_CFLAGS)" \ diff --git a/libs/matrixssl/Makefile b/libs/matrixssl/Makefile index 9708bd1e49..501f499d8e 100644 --- a/libs/matrixssl/Makefile +++ b/libs/matrixssl/Makefile @@ -31,6 +31,8 @@ endef define Build/Configure endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/src \ $(TARGET_CONFIGURE_OPTS) \ diff --git a/libs/mysql/Makefile b/libs/mysql/Makefile index eba36006de..33d0668f48 100644 --- a/libs/mysql/Makefile +++ b/libs/mysql/Makefile @@ -66,6 +66,8 @@ define Build/Configure ); endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) diff --git a/libs/neon/Makefile b/libs/neon/Makefile index ff99c64685..7407a97f9a 100644 --- a/libs/neon/Makefile +++ b/libs/neon/Makefile @@ -29,6 +29,8 @@ define Package/libneon endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/net-snmp/Makefile b/libs/net-snmp/Makefile index e599c4d7de..f86a4e0ae9 100644 --- a/libs/net-snmp/Makefile +++ b/libs/net-snmp/Makefile @@ -139,6 +139,8 @@ SNMP_TRANSPORTS_INCLUDED = Callback UDP SNMP_TRANSPORTS_EXCLUDED = TCP TCPv6 UDPv6 Unix +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/opal/Makefile b/libs/opal/Makefile index 3d3c8f51f7..bbc1e42ddd 100644 --- a/libs/opal/Makefile +++ b/libs/opal/Makefile @@ -38,6 +38,8 @@ define Package/libopal/description supports not only the H.323 protocol but also SIP and IAX2. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-audio \ --disable-video \ diff --git a/libs/opencdk/Makefile b/libs/opencdk/Makefile index e927a44f70..5fbddb0c46 100644 --- a/libs/opencdk/Makefile +++ b/libs/opencdk/Makefile @@ -38,6 +38,8 @@ define Package/libopencdk/description messages with earlier PGP version < 7, you should use the compat mode. endef +TARGET_CFLAGS += $(FPIC) + define Build/Configure $(call Build/Configure/Default, \ --enable-shared \ diff --git a/libs/openh323/Makefile b/libs/openh323/Makefile index 7b14548eb2..bc60e40ec6 100644 --- a/libs/openh323/Makefile +++ b/libs/openh323/Makefile @@ -27,9 +27,7 @@ define Package/libopenh323 URL:=http://openh323.sourceforge.net/ endef -ifeq ($(ARCH),x86_64) - FPIC:=-fPIC -endif +TARGET_CFLAGS += $(FPIC) CONFIGURE_ARGS += \ --enable-minsize \ diff --git a/libs/openldap/Makefile b/libs/openldap/Makefile index d01e987ca1..c491f3befe 100644 --- a/libs/openldap/Makefile +++ b/libs/openldap/Makefile @@ -62,6 +62,8 @@ define Package/openldap-utils/description This package contains client programs required to access LDAP servers. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/ossp-js/Makefile b/libs/ossp-js/Makefile index 8a2602e42e..9511352467 100644 --- a/libs/ossp-js/Makefile +++ b/libs/ossp-js/Makefile @@ -42,6 +42,8 @@ $(call Package/js/Default) TITLE+= (library) endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/pcre/Makefile b/libs/pcre/Makefile index ab43d9cf00..ac039cca92 100644 --- a/libs/pcre/Makefile +++ b/libs/pcre/Makefile @@ -27,6 +27,8 @@ define Package/libpcre URL:=http://www.pcre.org/ endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/popt/Makefile b/libs/popt/Makefile index 7c2e77b121..35da9a48a2 100644 --- a/libs/popt/Makefile +++ b/libs/popt/Makefile @@ -32,6 +32,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/postgresql/Makefile b/libs/postgresql/Makefile index 43ceb65114..aa13984505 100644 --- a/libs/postgresql/Makefile +++ b/libs/postgresql/Makefile @@ -160,6 +160,8 @@ define Build/Configure #$(SED) 's@US/Eastern@America/New_York@' $(PKG_BUILD_DIR)/src/timezone/Makefile endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C "$(PKG_BUILD_DIR)" \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/ptlib/Makefile b/libs/ptlib/Makefile index 4334cbc78d..795ba5a095 100644 --- a/libs/ptlib/Makefile +++ b/libs/ptlib/Makefile @@ -35,6 +35,8 @@ define Package/ptlib/description much more advanced. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-minsize \ --enable-opal \ diff --git a/libs/pwlib/Makefile b/libs/pwlib/Makefile index e960aba95c..59b2579012 100644 --- a/libs/pwlib/Makefile +++ b/libs/pwlib/Makefile @@ -33,9 +33,7 @@ define Package/pwlib/description System. endef -ifeq ($(ARCH),x86_64) - FPIC:=-fPIC -endif +TARGET_CFLAGS += $(FPIC) CONFIGURE_ARGS += \ --enable-minsize \ @@ -82,7 +80,7 @@ CONFIGURE_ARGS += \ --disable-xmlrpc \ CONFIGURE_VARS += \ - STDCXXFLAGS="$(TARGET_CFLAGS) $(FPIC) -fno-builtin" \ + STDCXXFLAGS="$(TARGET_CFLAGS) -fno-builtin" \ MAKE_FLAGS += optnoshared diff --git a/libs/radiusclient-ng/Makefile b/libs/radiusclient-ng/Makefile index 06aa5fb7e9..d53eb53e5e 100644 --- a/libs/radiusclient-ng/Makefile +++ b/libs/radiusclient-ng/Makefile @@ -60,6 +60,8 @@ $(call Package/radiusclient-ng/Default/description) This package contains a RADIUS client. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/rrdtool-1.0.x/Makefile b/libs/rrdtool-1.0.x/Makefile index ecbcc58979..408db7edd7 100644 --- a/libs/rrdtool-1.0.x/Makefile +++ b/libs/rrdtool-1.0.x/Makefile @@ -98,6 +98,8 @@ Round Robin Database (RRD) management tools. This package contains command line tools used to manage RRDs. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ $(DISABLE_LARGEFILE) \ $(DISABLE_NLS) \ diff --git a/libs/serdisplib/Makefile b/libs/serdisplib/Makefile index 9ed1cd9d54..208b0a42b1 100644 --- a/libs/serdisplib/Makefile +++ b/libs/serdisplib/Makefile @@ -38,9 +38,11 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - CFLAGS="$(TARGET_CFLAGS) -Wall -Wno-implicit -fPIC -I../include -I.." \ + CFLAGS="$(TARGET_CFLAGS) -Wall -Wno-implicit -I../include -I.." \ all endef diff --git a/libs/speex/Makefile b/libs/speex/Makefile index bd64f38e3c..3985865fc1 100644 --- a/libs/speex/Makefile +++ b/libs/speex/Makefile @@ -39,6 +39,8 @@ define Package/libspeex/description This package contains the shared codec library, needed by other programs. endef +TARGET_CFLAGS += $(FPIC) + TARGET_LDFLAGS:=$(TARGET_LDFLAGS) -lnotimpl define Build/Configure diff --git a/libs/sqlite2/Makefile b/libs/sqlite2/Makefile index 076f3473bf..415b62379f 100644 --- a/libs/sqlite2/Makefile +++ b/libs/sqlite2/Makefile @@ -74,6 +74,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ diff --git a/libs/sqlite3/Makefile b/libs/sqlite3/Makefile index 5d00a10b66..36ecd83c2c 100644 --- a/libs/sqlite3/Makefile +++ b/libs/sqlite3/Makefile @@ -56,6 +56,8 @@ define Package/sqlite3-cli/description multiple formats. endef +TARGET_CFLAGS += $(FPIC) + define Build/Configure $(call Build/Configure/Default, \ --enable-shared \ diff --git a/libs/st2205tool/Makefile b/libs/st2205tool/Makefile index 44ccffafb9..656395d363 100644 --- a/libs/st2205tool/Makefile +++ b/libs/st2205tool/Makefile @@ -33,6 +33,8 @@ define Package/st2205tool/description mplayer or LCD4Linux endef +TARGET_CFLAGS += $(FPIC) + MAKE_FLAGS += \ CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/libst2205/" \ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \ diff --git a/libs/taglib/Makefile b/libs/taglib/Makefile index b3d91af68e..f62376be29 100644 --- a/libs/taglib/Makefile +++ b/libs/taglib/Makefile @@ -26,6 +26,8 @@ define Package/taglib URL:=http://developer.kde.org/~wheeler/taglib.html endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ diff --git a/libs/tcp_wrappers/Makefile b/libs/tcp_wrappers/Makefile index f7e0da135d..ce3d39a640 100644 --- a/libs/tcp_wrappers/Makefile +++ b/libs/tcp_wrappers/Makefile @@ -27,6 +27,8 @@ define Package/libwrap URL:=ftp://ftp.porcupine.org/pub/security/index.html endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ $(TARGET_CONFIGURE_OPTS) \ diff --git a/libs/tiff/Makefile b/libs/tiff/Makefile index d765223c6d..a3432c4388 100644 --- a/libs/tiff/Makefile +++ b/libs/tiff/Makefile @@ -25,6 +25,8 @@ define Package/libtiff DEPENDS:=+zlib +libjpeg endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += --without-x MAKE_FLAGS += all install DESTDIR=$(PKG_INSTALL_DIR) diff --git a/libs/uclibc++/Makefile b/libs/uclibc++/Makefile index 688c5d2dde..27bfb76f74 100644 --- a/libs/uclibc++/Makefile +++ b/libs/uclibc++/Makefile @@ -41,6 +41,8 @@ UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \ -e 's/cris.*/cris/' \ ) +TARGET_CFLAGS += $(FPIC) + MAKE_FLAGS:= \ TOPDIR="$(PKG_BUILD_DIR)/" \ $(TARGET_CONFIGURE_OPTS) \ diff --git a/libs/ustl/Makefile b/libs/ustl/Makefile index 69ed7f9ac1..e98a9a3709 100644 --- a/libs/ustl/Makefile +++ b/libs/ustl/Makefile @@ -40,6 +40,8 @@ define Build/Configure $(CP) ./files/Common.mk $(PKG_BUILD_DIR)/ endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) diff --git a/libs/wnck/Makefile b/libs/wnck/Makefile index 80f1dcb74f..8bd19e3f01 100644 --- a/libs/wnck/Makefile +++ b/libs/wnck/Makefile @@ -44,6 +44,8 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install endef diff --git a/libs/wxbase/Makefile b/libs/wxbase/Makefile index 8c82acf081..62b60aa9f0 100644 --- a/libs/wxbase/Makefile +++ b/libs/wxbase/Makefile @@ -36,6 +36,7 @@ define Package/libwxbase/description etc.) allowing you to write portable programs easily. endef +TARGET_CFLAGS += $(FPIC) # XXX: aMule *needs* the following configure options to be enabled: # --enable-intl diff --git a/libs/xyssl/Makefile b/libs/xyssl/Makefile index f0ab98de9d..ab27a10cbe 100644 --- a/libs/xyssl/Makefile +++ b/libs/xyssl/Makefile @@ -46,6 +46,8 @@ endef define Build/Configure endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ $(TARGET_CONFIGURE_OPTS) \ diff --git a/libs/zaptel/Makefile b/libs/zaptel/Makefile index 43a7ce3683..450c1961b2 100644 --- a/libs/zaptel/Makefile +++ b/libs/zaptel/Makefile @@ -34,6 +34,8 @@ endef define Build/Configure endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ $(TARGET_CONFIGURE_OPTS) \