enable $(FPIC) for a few more packages
authorFelix Fietkau <nbd@openwrt.org>
Wed, 6 Aug 2008 22:43:15 +0000 (22:43 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 6 Aug 2008 22:43:15 +0000 (22:43 +0000)
SVN-Revision: 12228

119 files changed:
libs/alsa-lib/Makefile
libs/apr-util/Makefile
libs/apr/Makefile
libs/argtable/Makefile
libs/avahi/Makefile
libs/axtls/Makefile
libs/bluez-libs/Makefile
libs/cgilib/Makefile
libs/check/Makefile
libs/clearsilver/Makefile
libs/clinkc/Makefile
libs/confuse/Makefile
libs/curl/Makefile
libs/cyrus-sasl/Makefile
libs/db/Makefile
libs/dbus-glib/Makefile
libs/expat/Makefile
libs/faad2/Makefile
libs/fcgi/Makefile
libs/file/Makefile
libs/flac/Makefile
libs/freetype/Makefile
libs/gd/Makefile
libs/gdbm/Makefile
libs/gettext/Makefile
libs/giflib/Makefile
libs/glib/Makefile
libs/glib2/Makefile
libs/gnutls/Makefile
libs/gsl/Makefile
libs/gsm/Makefile
libs/howl/Makefile
libs/id3lib/Makefile
libs/iksemel/Makefile
libs/jpeg/Makefile
libs/libaio/Makefile
libs/libamsel/Makefile
libs/libao/Makefile
libs/libart/Makefile
libs/libatomicops/Makefile
libs/libaudiofile/Makefile
libs/libbfd/Makefile
libs/libcli/Makefile
libs/libdaemon/Makefile
libs/libdlna/Makefile
libs/libdnet/Makefile
libs/libdvbpsi4/Makefile
libs/libelf/Makefile
libs/libevent/Makefile
libs/libexif/Makefile
libs/libffi-sable/Makefile
libs/libgcrypt/Makefile
libs/libgpg-error/Makefile
libs/libgphoto2/Makefile
libs/libgssapi/Makefile
libs/libiconv/Makefile
libs/libid3tag/Makefile
libs/libjson-c/Makefile
libs/libmad/Makefile
libs/libmcrypt/Makefile
libs/libmpcdec/Makefile
libs/libmpd/Makefile
libs/libnet-1.0.x/Makefile
libs/libnet-1.1.x/Makefile
libs/libnetfilter-queue/Makefile
libs/libnfnetlink/Makefile
libs/libnfsidmap/Makefile
libs/libnids/Makefile
libs/libnotimpl/Makefile
libs/liboil/Makefile
libs/libol/Makefile
libs/libosip2/Makefile
libs/libpam/Makefile
libs/libpng/Makefile
libs/libreadline/Makefile
libs/librpcsecgss/Makefile
libs/librsync/Makefile
libs/libsamplerate/Makefile
libs/libshout/Makefile
libs/libsigc++/Makefile
libs/libsndfile/Makefile
libs/libtasn1/Makefile
libs/libtorrent/Makefile
libs/libupnp/Makefile
libs/libusb/Makefile
libs/libvorbisidec/Makefile
libs/libxml2/Makefile
libs/libxslt/Makefile
libs/lzo/Makefile
libs/matrixssl/Makefile
libs/mysql/Makefile
libs/neon/Makefile
libs/net-snmp/Makefile
libs/opal/Makefile
libs/opencdk/Makefile
libs/openh323/Makefile
libs/openldap/Makefile
libs/ossp-js/Makefile
libs/pcre/Makefile
libs/popt/Makefile
libs/postgresql/Makefile
libs/ptlib/Makefile
libs/pwlib/Makefile
libs/radiusclient-ng/Makefile
libs/rrdtool-1.0.x/Makefile
libs/serdisplib/Makefile
libs/speex/Makefile
libs/sqlite2/Makefile
libs/sqlite3/Makefile
libs/st2205tool/Makefile
libs/taglib/Makefile
libs/tcp_wrappers/Makefile
libs/tiff/Makefile
libs/uclibc++/Makefile
libs/ustl/Makefile
libs/wnck/Makefile
libs/wxbase/Makefile
libs/xyssl/Makefile
libs/zaptel/Makefile

index 22e695bcaeda7c49dfba6cbc9c2283e6a4f7a3f0..8b78787cdff0c81c527b549746c7ad9dd8046404 100644 (file)
@@ -39,6 +39,7 @@ define Package/alsa-lib/description
  You must have enabled the ALSA support in the kernel.
 endef
 
  You must have enabled the ALSA support in the kernel.
 endef
 
+TARGET_CFLAGS += $(FPIC)
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 1c933711da653ae51f28d721f92698cdaa942970..17c28568ea93458f2a9a663f0fdd05c24ae74be6 100644 (file)
@@ -29,6 +29,7 @@ define Package/libaprutil
 endef
 
 
 endef
 
 
+TARGET_CFLAGS += $(FPIC)
 CONFIGURE_ARGS += \
        --with-pgsql=no \
        --with-apr="$(STAGING_DIR)/usr/bin/apr-1-config" \
 CONFIGURE_ARGS += \
        --with-pgsql=no \
        --with-apr="$(STAGING_DIR)/usr/bin/apr-1-config" \
index a9394dc7ac796deff93a4689b6f3588bb5b7b185..6f6ec571ac92658dbb8f3c392c3f1253bd24a82a 100644 (file)
@@ -28,17 +28,16 @@ define Package/libapr
   URL:=http://apr.apache.org/
 endef
 
   URL:=http://apr.apache.org/
 endef
 
+TARGET_CFLAGS += $(FPIC)
 CONFIGURE_ARGS += \
        --with-devrandom=/dev/urandom \
        --disable-dso \
        --enable-ipv6
 
 CONFIGURE_VARS += \
 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 \
        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
        LDFLAGS="$$$$LDFLAGS -lpthread" \
 
 define Build/Compile
index 90e267650f12d18893cad22cf792b2d58d208647..a6fc0b7d61614bc268544e44692e3371eaa47cc3 100644 (file)
@@ -35,6 +35,7 @@ define Package/argtable/description
        each argument.
 endef
 
        each argument.
 endef
 
+TARGET_CFLAGS += $(FPIC)
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index a5371d6de4307707f3170a5bc731b7e4350b1e17..d7980fac7ef056ab45ea8a023eb468b305659924 100644 (file)
@@ -100,6 +100,7 @@ $(call Package/avahi/Default/description)
  in a DHCP-like fashion. Especially useful on IPv6.
 endef
 
  in a DHCP-like fashion. Especially useful on IPv6.
 endef
 
+TARGET_CFLAGS += $(FPIC)
 CONFIGURE_ARGS+= \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS+= \
        --enable-shared \
        --enable-static \
index 74538625fb3dfc32ed0dccab440423bfaf6f5bab..1cc87fe6ac1b5da4d3e39b108cac4279c6254672 100644 (file)
@@ -41,6 +41,8 @@ define Build/Configure
        $(MAKE) -C $(PKG_BUILD_DIR) oldconfig
 endef
 
        $(MAKE) -C $(PKG_BUILD_DIR) oldconfig
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CC="$(TARGET_CC)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CC="$(TARGET_CC)" \
index d50c21cd0e0a00880c15713cccaea186809f2284..16696a503e7388e7c0c2948be9665e41b418e572 100644 (file)
@@ -29,6 +29,8 @@ CONFIGURE_ARGS += \
                --enable-shared \
                --enable-static \
 
                --enable-shared \
                --enable-static \
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 9bd2d42c5c3a0d9cf9bb324ddbcb639148d40ff5..e16731b731944b7ec2646349d623ec95189ca574 100644 (file)
@@ -30,6 +30,8 @@ endef
 define Build/Configure
 endef
 
 define Build/Configure
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
index 2d240804fe1b58623e2ef4f1c160a3013595ff8a..22ac2966c445435a98fa391862b4fb0c4ca14318 100644 (file)
@@ -36,6 +36,8 @@ define Build/Configure
        $(call Build/Configure/Default)
 endef
 
        $(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
 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
index e1f6ba122101ba79327782ebd18fa755dc18396a..e5dc2b98dbc22552a716388df3950212030e8624 100644 (file)
@@ -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
 
 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 \
 CONFIGURE_ARGS += \
   --disable-wdb \
   --disable-apache \
index 868f58a4ad0f795bd7aa02f87bc5ec86446e49f8..c3beda852d08b952ad30b7bd215c0b5805447c1f 100644 (file)
@@ -36,6 +36,8 @@ endef
 
 # uses GNU configure
 
 
 # uses GNU configure
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        chmod +x $(PKG_BUILD_DIR)/config/install-sh
        $(MAKE) -C $(PKG_BUILD_DIR) \
 define Build/Compile
        chmod +x $(PKG_BUILD_DIR)/config/install-sh
        $(MAKE) -C $(PKG_BUILD_DIR) \
index 3b180400d8b09f6854a545230921ec2a6e620e8c..80bcd6bac0a4ab86a40f718caaeade4fb0c263b4 100644 (file)
@@ -37,6 +37,8 @@ define Package/confuse/description
         libConfuse was called libcfg before, but was changed to not confuse with other similar libraries. 
 endef
 
         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 \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 0f80736581b3608eee3482485043ff805f8eb8f5..5bb0a0087c1c3d5d657bafdebc8ccea7bc0e6fd9 100644 (file)
@@ -46,6 +46,8 @@ define Package/libcurl
   TITLE:=A client-side URL transfer utility
 endef
 
   TITLE:=A client-side URL transfer utility
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 5eb0dc402059845220d1437f9b231eb38daa4abf..aac46300b7e7f13bbd7004f444e990184c00a739 100644 (file)
@@ -28,48 +28,46 @@ define Package/libsasl2
   URL:=http://asg.web.cmu.edu/sasl/
 endef
 
   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 \
 
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)/include \
index faafcceadabcd0ccbf3e9839b5332e30a0a60a24..5f8abf2e21939cb3a73dc4f8064f95e07681df66 100644 (file)
@@ -74,6 +74,8 @@ define Build/Configure
        );
 endef
 
        );
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
 define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
index 829cddc1054419fe961e190693649731a494c9aa..30521fa467336f732d4c23a2654a62da319f2983 100644 (file)
@@ -28,6 +28,8 @@ define Package/libdbus-glib
 endef
 
 
 endef
 
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index a377ab8edf547ee56c0edf94ef3f279f020647a7..7d2ab56a41e491d45232388e528e7a267896f47e 100644 (file)
@@ -33,6 +33,8 @@ define Package/libexpat/description
 endef
 
 
 endef
 
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static
index 63f91bad55bcaba19540703ca7491ac2adf387c0..11ba48755cfc5e9c9e926b44a61d0ebd7d8d045b 100644 (file)
@@ -70,6 +70,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 MAKE_FLAGS += \
        DESTDIR="$(PKG_INSTALL_DIR)" \
        all install \
 MAKE_FLAGS += \
        DESTDIR="$(PKG_INSTALL_DIR)" \
        all install \
index 8f5a7816de5ed40e3f02f7b4f96d5737cfb180d9..0c81d7fd9a938ead148dbef1f0faf60165252ae8 100644 (file)
@@ -33,6 +33,8 @@ define Package/fcgi/description
  server specific APIs.
 endef
 
  server specific APIs.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 3192591b9ed66d2b8bb1eee75002ed6ddb95578f..c7b67e39800809bd220116d46bb059cd5f9b0777 100644 (file)
@@ -44,6 +44,8 @@ define Package/file/description
  a wrapper around the "magic" library. 
 endef
 
  a wrapper around the "magic" library. 
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index e84c147296d4ea42e1c84a7cc995f746806bbe42..8ddabeb756d9e94582ac5ba045aeadf84f38b119 100644 (file)
@@ -30,6 +30,8 @@ endef
 define Build/Configure
 endef
 
 define Build/Configure
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lite \
                $(TARGET_CONFIGURE_OPTS) \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lite \
                $(TARGET_CONFIGURE_OPTS) \
index 7592c8c1a6b33fe7402c954c2bdb74e975acefea..dd67a7b7da0a935b9dedc4a11bb6236dc40b5ff5 100644 (file)
@@ -35,6 +35,8 @@ define Package/libfreetype/description
  efficient and ubiquitous products.
 endef
 
  efficient and ubiquitous products.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 399f7c6e0c44a7c94dac2e27c411eea76e379d8c..2649ee82d8f4e8e6c47878ea92a4a4ae5d3e36ca 100644 (file)
@@ -26,20 +26,20 @@ define Package/libgd
   URL:=http://www.boutell.com/gd/
 endef
 
   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) \
 
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
index f86743bc1e8842d1c8e9f53e6ab2a8078aac1eb5..c504c050255437e920b0119e032e7beeff631f34 100644 (file)
@@ -27,6 +27,8 @@ define Package/libgdbm
   URL:=http://www.gnu.org/software/gdbm/
 endef
 
   URL:=http://www.gnu.org/software/gdbm/
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 0b148933bb0aa825190ea4904a209034edf3dad3..8121ab0474e541bd05e2fe3f53c3c119d48cc09e 100644 (file)
@@ -27,6 +27,8 @@ define Package/libintl
   URL:=http://www.gnu.org/software/gettext/
 endef
 
   URL:=http://www.gnu.org/software/gettext/
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 27fbfee447ae189de521a08c6aa5ada6eba8f745..c63e9af2f1ddfce762248e5c8d2d8f196753de65 100644 (file)
@@ -25,19 +25,8 @@ define Package/giflib
   DEPENDS:=
 endef
 
   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)
 
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)
index 024c8c85753ce1b15fb41106c59b8b1a1df70af0..7f8229f16c74979eabd512ff6cf5a9bfe32cccea 100644 (file)
@@ -36,6 +36,8 @@ define Package/glib1/description
  as trees, hashes, and lists.
 endef
 
  as trees, hashes, and lists.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 750f631047eeb798fc20409de3289a4222936d2e..a740b98503c18606d30ea906d5a30c00bc22c5fe 100644 (file)
@@ -35,6 +35,7 @@ define Package/glib2/description
 The GLib library of C routines
 endef
 
 The GLib library of C routines
 endef
 
+TARGET_CFLAGS += $(FPIC)
 
 define Build/Configure
        mkdir -p $(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME)
 
 define Build/Configure
        mkdir -p $(PKG_BUILD_DIR)/build/$(GNU_HOST_NAME)
index 42ee26f8b978f9c7df5f65a5f1357d2e1c8b350d..68a79b859b0703fadca328b905b5748137df4957 100644 (file)
@@ -102,6 +102,8 @@ $(call Package/gnutls/Default/description)
  This package contains the GnuTLS OpenSSL compatibility layer shared library.
 endef
 
  This package contains the GnuTLS OpenSSL compatibility layer shared library.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS+= \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS+= \
        --enable-shared \
        --enable-static \
index 1c52d147d4074dc822797883c1d48de7f6facbc0..b83e65f9af6ba2ebc48b36400213c85abcf1e7ee 100644 (file)
@@ -32,6 +32,8 @@ define Package/libgsl/description
        There are over 1000 functions in total with an extensive test suite.
 endef
 
        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)
 define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
index e5c1ed3472a85edb9c7c6c27641bc4a95595df03..60274ff05657b2071bac53c2ba87a1acc8ff6478 100644 (file)
@@ -53,6 +53,8 @@ endef
 define Build/Configure
 endef
 
 define Build/Configure
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
 define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
index 79d647319f75f6d93cfbc48b2c1124ba6c2086bb..48e10c13730a86470d79017457e9ce864ac96e7f 100644 (file)
@@ -90,6 +90,8 @@ define Build/Configure
        );
 endef
 
        );
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index a099bd89e0ed6d427c245efb63aa91754c9d0932..998209929270bac1d2c9ebd0abf5442b6c4ef6f7 100644 (file)
@@ -28,6 +28,8 @@ define Package/id3lib
   URL:=http://www.id3lib.org/
 endef
 
   URL:=http://www.id3lib.org/
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 995535874c0d197bde4c99a54bf74233a611c3f0..388c469909f5937613c72028170ff0d49d7066d3 100644 (file)
@@ -28,6 +28,8 @@ define Package/libiksemel
   DEPENDS:= +libgnutls
 endef
 
   DEPENDS:= +libgnutls
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index d1321eeee6652af07e4a33af12bd03de2a6b5cbf..64b39a979ee47fdfff4540ece472d2346f5931c4 100644 (file)
@@ -41,6 +41,8 @@ define Package/jpeg-tools
   TITLE+= manipulation tools
 endef
 
   TITLE+= manipulation tools
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index d2741d74cc58af4a4b4c82f42c85a92f5b82b196..0137b40e58847ac83b085078263420e9fce268a0 100644 (file)
@@ -33,6 +33,8 @@ endef
 LIBAIO_CFLAGS:=-nostdlib -nostartfiles -I. $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
 LIBAIO_SOVER:=1.0.1
 
 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) \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
index 37da29e70cc1a7d1e7db35a824a76e7a7552202c..32589951621944eee746d5b52fb5b0724cf67cec 100644 (file)
@@ -32,6 +32,8 @@ endef
 define Build/Configure
 endef
 
 define Build/Configure
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 MAKE_FLAGS += \
        CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR) -fPIC" \
        LDIR=$(PKG_BUILD_DIR) \
 MAKE_FLAGS += \
        CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR) -fPIC" \
        LDIR=$(PKG_BUILD_DIR) \
index 76c9575087c15c77e10c542a2fa1bcaba6604e5f..5f9efef93e0c39336703a49785100a8dd340e011 100644 (file)
@@ -31,16 +31,15 @@ define Package/libao/description
        output audio using a simple API on a wide variety of platforms.
 endef
 
        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) \
 
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
index eb8fed8b4e556895f51562ed319347f52577b296..7a86ac7c57efd7eef83dd85ba4dea0315d00cf1b 100644 (file)
@@ -36,6 +36,8 @@ define Package/libart/description
        especially suitable for embedded applications.
 endef
 
        especially suitable for embedded applications.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static
index 3d3721a75940ba06cc64692281f3d48e746e707d..26a043337f98a8ab3c5f542cba22abacd6a6746e 100644 (file)
@@ -38,6 +38,8 @@ define Package/libatomicops/description
   architectures.
 endef
 
   architectures.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 31df24506607164a65ed30fe6dec7a90b12a1e74..b6fadb829d9806f70284b32758ff7d3bfadc7059 100644 (file)
@@ -31,6 +31,8 @@ define Package/libaudiofile/description
        and raw data).
 endef
 
        and raw data).
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
index bd115a8e39072e56ed6d548168e5c0c732006291..4264ecad9ea88c450970035dc32cd98f96dfa473 100644 (file)
@@ -32,6 +32,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)/bfd \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)/bfd \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 8aa81b85c3b252b5236bfef1d0903bafa924a6e2..5696b5cd8ad6d6ad38b08261d266f72f1341eb57 100644 (file)
@@ -32,6 +32,8 @@ define Package/libcli/description
        authentication and callbacks for a user-definable function tree.
 endef
 
        authentication and callbacks for a user-definable function tree.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 MAKE_FLAGS += \
        OPTIM="$(TARGET_CFLAGS)" \
        CFLAGS="$(TARGET_CFLAGS)" \
 MAKE_FLAGS += \
        OPTIM="$(TARGET_CFLAGS)" \
        CFLAGS="$(TARGET_CFLAGS)" \
index 694827ac15c065236daa08b9830b7d21f1112692..9b203a31c482b174d2803bce1f9d43490ab05396 100644 (file)
@@ -46,6 +46,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 2f4f029e0ade92357277ead6411420b335a7927f..39767b3ff0430fbd543d0006dcd4e2b801037a7d 100644 (file)
@@ -52,6 +52,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 5bd4a72b15278b19bd31e52a369b312822387692..436cde416eaee9b00f7656a6e29c20da89db22e7 100644 (file)
@@ -43,6 +43,8 @@ define Package/pydnet/description
        low-level networking routines.
 endef
 
        low-level networking routines.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index af09790f22f24f7226c966c031712479ad299f57..95fc4519426431eacf494fec64397ef2c59cd280 100644 (file)
@@ -30,6 +30,8 @@ define Package/libdvbpsi4/description
        decoding and generating.
 endef
 
        decoding and generating.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(call Build/Compile/Default, \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(call Build/Compile/Default, \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 7be041581a4318f152ef24badd7151225ba1ca32..50b9e1af2fdbc04a4d93806f47e4f656f18030be 100644 (file)
@@ -25,6 +25,8 @@ define Package/libelf
   URL:=http://www.stud.uni-hannover.de/~michael/software/
 endef
 
   URL:=http://www.stud.uni-hannover.de/~michael/software/
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 7d8b66208c712a3a3542a281bbae651618f25fa4..8f45be008310bb6c8246b36799b509e841fdacc4 100644 (file)
@@ -38,6 +38,8 @@ define Package/libevent/description
        the event loop.
 endef
 
        the event loop.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 945c4bc22e54102dfa152a6e795c03006f5f2f67..edab42dd3bdd51ec63de1b6c8efbc0cf66cb722b 100644 (file)
@@ -35,6 +35,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index cfb139650f1e370e38f5796094e1cc696560709b..2d6e9c11f02ee06152da1b880f51f6dc978eab93 100644 (file)
@@ -33,6 +33,8 @@ define Package/libffi-sable/description
        time.
 endef
 
        time.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
index 4158f641af1d32d0d95f7c24fb769153b4b0e842..2da5aad8150f669636e5a13b6f08623b28a2e12a 100644 (file)
@@ -39,6 +39,8 @@ define Package/libgcrypt/description
  RC2, SEED, Camellia, CRC, MD4, TIGER-192, Whirlpool, ElGamal, ECC).
 endef
 
  RC2, SEED, Camellia, CRC, MD4, TIGER-192, Whirlpool, ElGamal, ECC).
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS+= \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS+= \
        --enable-shared \
        --enable-static \
index 55117848a5c01e6691545fd75e36f2322eacb481..4e0e3153c1a4dfdca257e5e7acc96fa4e415e930 100644 (file)
@@ -38,6 +38,8 @@ define Package/libgpg-error/description
        future.
 endef
 
        future.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
index 9b7d2dccca1d8e283df7f61a469cc1291fc7f12b..7a65489cea7be9a435d35afffe07f7fe51e4b8bc 100644 (file)
@@ -39,6 +39,8 @@ define Package/libgphoto2-drivers
   TITLE:=Gphoto2 drivers for various cameras
 endef
 
   TITLE:=Gphoto2 drivers for various cameras
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 4dc482ce57a965bcbf0c2ccba1db8f7e6ba5a1c2..319d8224f8218b4d73262212b73346ff8f3d8ef9 100644 (file)
@@ -29,7 +29,7 @@ define Package/libgssapi/description
  Support libraries - for newer nfs mount command (nfs4)
 endef
 
  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)" \
 
 MAKE_FLAGS += \
        OPT="$(TARGET_CFLAGS)" \
index e0b9b57af926d041637be23570280d13575107ef..f651d475bd4adf700e6ba54f03630dc5b7f4c0e7 100644 (file)
@@ -27,15 +27,13 @@ define Package/libiconv
   URL:=http://www.gnu.org/software/libiconv/
 endef
 
   URL:=http://www.gnu.org/software/libiconv/
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
        --disable-rpath \
 
 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) \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) CC="$(TARGET_CC)"
        $(MAKE) -C $(PKG_BUILD_DIR) \
index d21ef5f1c1eedfbec0d90691ce209711b034f939..e5ce456a659ac197b0af33f2fb150e38787e2444 100644 (file)
@@ -31,6 +31,8 @@ define Package/libid3tag/description
        ID3v1 and the various versions of ID3v2.
 endef
 
        ID3v1 and the various versions of ID3v2.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
index f713cc61574a9e95ba02d03c48e64b1327409790..f6b969b3a80cf1b88ffabeb5fd3b8115b5325a7b 100644 (file)
@@ -29,6 +29,8 @@ define Package/libjson/description
  This package contains a library for javascript object notation backends.
 endef
 
  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)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 30360b9d378ba314c6c5051548cddf95b5e78053..7c3cad3b3d5fe313f0b26d227a2a82d0bcbbd7d3 100644 (file)
@@ -44,6 +44,8 @@ define Package/libmad/description
        Layer I, Layer II, and Layer III (i.e. MP3) - are fully implemented.
 endef
 
        Layer I, Layer II, and Layer III (i.e. MP3) - are fully implemented.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index f71b220f3ad5d17305b5f36c0d3ad63f4c60a27a..cbf69d33b6fded7269e2033c5ff3deb88641d75d 100644 (file)
@@ -37,6 +37,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 4c04bb1479c8b3af3e0bbbb03b3eebea3013a5c8..d11a02956317c3c926ee984c76267af1032a543f 100644 (file)
@@ -29,9 +29,7 @@ define Package/libmpcdec/description
        Musepack decoder library
 endef
 
        Musepack decoder library
 endef
 
-define Build/Configure
-       $(call Build/Configure/Default)
-endef
+TARGET_CFLAGS += $(FPIC)
 
 define Build/Compile
        $(call Build/Compile/Default,\
 
 define Build/Compile
        $(call Build/Compile/Default,\
index ace9fc8a0da3e262ff5a9fa48e53bb01f017ceb2..24fee43b41b67d0ce1e609e3e131834dc867e1d9 100644 (file)
@@ -29,6 +29,8 @@ define Package/libmpd/description
 It's wraps around libmpdclient and provides a higher level api.
 endef
 
 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)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
        DESTDIR="$(PKG_INSTALL_DIR)" \
index c58aa9a3519952018a17593134a034c1f5a1f9a3..8d381326a0c7cf6329a9686027bce0c20ddd1924 100644 (file)
@@ -33,6 +33,8 @@ ifeq ($(CONFIG_BIG_ENDIAN),y)
   ENDIANESS:=big
 endif
 
   ENDIANESS:=big
 endif
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 198d09bccf9df2653781d2bd6b27ef041915aae0..42aea86777ba8504a68e6cd40bf359ee75b6aa0a 100644 (file)
@@ -33,6 +33,8 @@ ifeq ($(CONFIG_BIG_ENDIAN),y)
   ENDIANESS:=big
 endif
 
   ENDIANESS:=big
 endif
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 1997b20b54d2c45eb8c99dcd92ac00d62fe67f98..e20880ea2f7a01aa1839557bbbc4559a97f406bf 100644 (file)
@@ -31,6 +31,8 @@ define Package/libnetfilter-queue/description
        that deprecates the old ip_queue / libipq mechanism.
 endef
 
        that deprecates the old ip_queue / libipq mechanism.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-static \
        --enable-shared \
 CONFIGURE_ARGS += \
        --enable-static \
        --enable-shared \
index 2c09539e46a14a7685ec7981e7e2b09ab2c09111..5b765f2f3b9663a3803b51c8b3120332a61cc0fc 100644 (file)
@@ -33,6 +33,8 @@ define Package/libnfnetlink/description
  and/or management tools in userspace.
 endef
 
  and/or management tools in userspace.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-static \
        --enable-shared
 CONFIGURE_ARGS += \
        --enable-static \
        --enable-shared
index bf0cc7203bda1060f883a954d74412e0541cd711..badd574e09e0edd2d1b4c3059d7f2d35621a120b 100644 (file)
@@ -29,6 +29,8 @@ define Package/libnfsidmap/description
  needed for nfs-utils
 endef
 
  needed for nfs-utils
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
 
 MAKE_FLAGS += \
 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
 
 MAKE_FLAGS += \
index ace4ca061eb6b3c8262b2f2c5378d106bb84c754..dde7df9bc02c63ac965faffb944ebe180f7c41c3 100644 (file)
@@ -42,6 +42,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                LNETLIB="-L$(STAGING_DIR)/usr/lib/libnet-1.0.x/lib -lnet" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                LNETLIB="-L$(STAGING_DIR)/usr/lib/libnet-1.0.x/lib -lnet" \
index cf793eefe4ae719fd35debc24ac4add9088e6816..e32ad7f4253c031d1eecfaa9ea51dbcfa29db662 100644 (file)
@@ -34,6 +34,8 @@ define Build/Prepare
        mkdir -p $(PKG_BUILD_DIR)
 endef
 
        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
 define Build/Compile
        $(call cc,math)
        $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o
index bfe3bf65a364c27c4602770dcc887d9ee09c0d2b..ea6f0eba8c6fd9af6fab64e016b30743ecb53ff1 100644 (file)
@@ -37,6 +37,8 @@ define Package/liboil/description
   provided by modern CPUs (Altivec, MMX, SSE, etc.).
 endef
 
   provided by modern CPUs (Altivec, MMX, SSE, etc.).
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 01981c2aae39319c92be021f88b7ad51c41e669e..0d4c2f919e1dfec882605cd091e31fa93c1a19a2 100644 (file)
@@ -32,6 +32,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        # pass CFLAGS again to override -O2 set by configure
        $(MAKE) -C $(PKG_BUILD_DIR) \
 define Build/Compile
        # pass CFLAGS again to override -O2 set by configure
        $(MAKE) -C $(PKG_BUILD_DIR) \
index eb12963cdc6a8113e6661a10d3fca430a9c6a4ea..ae322a2e3062b481b5bad619f0d1e83f63d297c9 100644 (file)
@@ -32,6 +32,8 @@ define Package/libosip2description
  GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
 endef
 
  GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS+= \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS+= \
        --enable-shared \
        --enable-static \
index eb5c7772261407acf34c7c0d7e32816320b052c7..3da0908c826a183569710e0ec68fadb4673e69d6 100644 (file)
@@ -33,6 +33,8 @@ define Package/libpam/description
 
 endef
 
 
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
index 0030549c591852f62b642fbd77dd207a8769198d..6ce0daf5af98a4c737a2a31c74b145a1ca34cd19 100644 (file)
@@ -34,6 +34,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 2c75045fe502d91f6c9e8d7cd8c05956118a5965..1ded2788a0bf2467f57793782c76c7dd7ae3980b 100644 (file)
@@ -44,6 +44,8 @@ endef
 
 TARGET_CPPFLAGS:=-I. -I.. $(TARGET_CPPFLAGS)
 
 
 TARGET_CPPFLAGS:=-I. -I.. $(TARGET_CPPFLAGS)
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 92117175476e13902b955b53bc2a0bbf6bd82886..9b616eb2a29a632873240da06b77804edb690c1e 100644 (file)
@@ -31,7 +31,7 @@ define Package/librpcsecgss/description
  Support libraries - for newer nfs mount command (nfs4)
 endef
 
  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)" \
 
 MAKE_FLAGS += \
        OPT="$(TARGET_CFLAGS)" \
index 5fe3c7211f4a426773e8906b32b854b8872fd289..dc8f1a81b1b7270fa1f31d44098daaf2147258cf 100644 (file)
@@ -38,6 +38,8 @@ define Build/Configure
        );
 endef
 
        );
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 03ba99ec2e26d1706c55627faa20e51def3f4363..0e9585f686f16f33049654b12aaa8ecdbb73b611 100644 (file)
@@ -33,6 +33,8 @@ define Package/libsamplerate/description
  Converter for audio.
 endef
 
  Converter for audio.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --disable-fftw \
 
 CONFIGURE_ARGS += \
        --disable-fftw \
 
index 45205f312d6f976977da3ecf2b1919811eb3e50f..285f3a827c375af166c2ea19d476165e3556fa51 100644 (file)
@@ -45,6 +45,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index c007a7db268c437dab73679be8fbe56b6897e433..4c04c980fe8f734d9d032429dd61fdfb57961429 100644 (file)
@@ -34,6 +34,8 @@ define Package/libsigcxx/description
  whether it is static or virtual.
 endef
 
  whether it is static or virtual.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 8bca9fe46eb690d9893e9afe87dff1f063084fd0..2295519deec8b1e25c88ccc2a237dcd77c599ce2 100644 (file)
@@ -32,6 +32,8 @@ define Package/libsndfile/description
  containing sampled audio data.
 endef
 
  containing sampled audio data.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --disable-flac
 
 CONFIGURE_ARGS += \
        --disable-flac
 
index 4b8e7f4202c0aaa2f61dcf1dd4b9308276238244..1c8c98daa6b1b3e90b46596edc8a61b7d33f3023 100644 (file)
@@ -36,6 +36,8 @@ define Package/libtasn1/description
  Distinguish Encoding Rules (DER) manipulation.
 endef
 
  Distinguish Encoding Rules (DER) manipulation.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
                --enable-shared \
                --enable-static
 CONFIGURE_ARGS += \
                --enable-shared \
                --enable-static
index 2bc9f7101f16c8c06ad9f0564bf8e731dec69c0a..0e73e38834d391dd0749f1a65e980560ba5652b9 100644 (file)
@@ -36,6 +36,8 @@ define Package/libtorrent/description
  the speed of the official client.
 endef
 
  the speed of the official client.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 # XXX: rtorrent needs encryption (--enable-openssl)
 CONFIGURE_ARGS+= \
        --enable-shared \
 # XXX: rtorrent needs encryption (--enable-openssl)
 CONFIGURE_ARGS+= \
        --enable-shared \
index 9ebef1596f4f79de3a613314322a407466aa7839..ab7e7e161ff3668091969d9c6576776689198d7e 100644 (file)
@@ -57,6 +57,8 @@ define Build/Configure
        );
 endef
 
        );
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CCOPT="$(TARGET_CFLAGS)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CCOPT="$(TARGET_CFLAGS)" \
index d87154bc36080f03fa79a216b15e9e16cd99c02d..ed6ad4cec8985ab6f6671f5f252a75bd7ea4f2f5 100644 (file)
@@ -32,6 +32,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 1ed04cf7be40bc20ae13e5b724ba73a5142850b2..24a3ebf9a3e2e330f146f7c846b604cdd299bd90 100644 (file)
@@ -34,6 +34,8 @@ define Package/libvorbisidec/description
        Tremor is a decoder only.
 endef
 
        Tremor is a decoder only.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Configure
        (cd $(PKG_BUILD_DIR); ./autogen.sh );
        $(call Build/Configure/Default, \
 define Build/Configure
        (cd $(PKG_BUILD_DIR); ./autogen.sh );
        $(call Build/Configure/Default, \
index da986c635cd5f47bcc037c48212ff53af6c3755a..b31966e7f8474ebefddf33375faf6c618d8a6a2a 100644 (file)
@@ -34,6 +34,7 @@ define Package/libxml2/description
  A library for manipulating XML and HTML resources.
 endef
 
  A library for manipulating XML and HTML resources.
 endef
 
+TARGET_CFLAGS += $(FPIC)
 
 CONFIGURE_ARGS += \
        --enable-shared \
 
 CONFIGURE_ARGS += \
        --enable-shared \
index a6f81c695b1d3510ffe966b96167428337e67439..1ba4e930f1ae138f53e4bb47959e0f0b11dcf605 100644 (file)
@@ -60,6 +60,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 68e278fc6ff2cb02278bfc1e03d13e3238c8daf4..86c216af917fa14eebd85c37a832fc0c8b639b86 100644 (file)
@@ -38,6 +38,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CFLAGS_O="$(TARGET_CFLAGS)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CFLAGS_O="$(TARGET_CFLAGS)" \
index 9708bd1e499341e6411c225f51c1d905ae32e39a..501f499d8e03ac00fe25cc9b22c330d604938dad 100644 (file)
@@ -31,6 +31,8 @@ endef
 define Build/Configure
 endef
 
 define Build/Configure
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)/src \
                $(TARGET_CONFIGURE_OPTS) \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)/src \
                $(TARGET_CONFIGURE_OPTS) \
index eba36006debb7fdc730940988c48ea20be7f2aeb..33d0668f48ce7f5c6c0bd177d6dd9acb22ef8454 100644 (file)
@@ -66,6 +66,8 @@ define Build/Configure
        );
 endef
 
        );
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
 define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
index ff99c64685017645163245cbd788cab21b508d1a..7407a97f9a40cc587e3c2c2a9d3055d0ad964460 100644 (file)
@@ -29,6 +29,8 @@ define Package/libneon
 endef
 
 
 endef
 
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index e599c4d7de3cce675d4cb99dd5615874675cabdf..f86a4e0ae98e5f0aeb82afdc5518fc60d9ea0c08 100644 (file)
@@ -139,6 +139,8 @@ SNMP_TRANSPORTS_INCLUDED = Callback UDP
 
 SNMP_TRANSPORTS_EXCLUDED = TCP TCPv6 UDPv6 Unix
 
 
 SNMP_TRANSPORTS_EXCLUDED = TCP TCPv6 UDPv6 Unix
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 3d3c8f51f75a68178425039245bfe371b8453518..bbc1e42dddd7add39cfa6f9e1af41c1f858af7ff 100644 (file)
@@ -38,6 +38,8 @@ define Package/libopal/description
        supports not only the H.323 protocol but also SIP and IAX2.
 endef
 
        supports not only the H.323 protocol but also SIP and IAX2.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-audio \
        --disable-video \
 CONFIGURE_ARGS += \
        --enable-audio \
        --disable-video \
index e927a44f7051abf98081a2c8022b4eb8bc6099ca..5fbddb0c466a0552fea6d130a7383a5ec84dbe76 100644 (file)
@@ -38,6 +38,8 @@ define Package/libopencdk/description
        messages with earlier PGP version < 7, you should use the compat mode.
 endef
 
        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 \
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
index 7b14548eb260721051853a530fbb3d6b21f88bca..bc60e40ec647bd70805e7538e7ff9561bb9de9a3 100644 (file)
@@ -27,9 +27,7 @@ define Package/libopenh323
   URL:=http://openh323.sourceforge.net/
 endef
 
   URL:=http://openh323.sourceforge.net/
 endef
 
-ifeq ($(ARCH),x86_64)
-  FPIC:=-fPIC
-endif
+TARGET_CFLAGS += $(FPIC)
 
 CONFIGURE_ARGS += \
        --enable-minsize \
 
 CONFIGURE_ARGS += \
        --enable-minsize \
index d01e987ca1adf2532bdb013bfcb59fa5279988ab..c491f3befec8d8b0f69182b7809ee94a3003bec0 100644 (file)
@@ -62,6 +62,8 @@ define Package/openldap-utils/description
        This package contains client programs required to access LDAP servers.
 endef
 
        This package contains client programs required to access LDAP servers.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 8a2602e42e5d8c504f2368e1263216b23fccbcbf..95113524677bbec8b76ccf37870e3a5e47785c16 100644 (file)
@@ -42,6 +42,8 @@ $(call Package/js/Default)
  TITLE+= (library)
 endef
 
  TITLE+= (library)
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index ab43d9cf009bdd8f7bdedda843ca965f318a5f04..ac039cca92922f912619ef777e215787b65d7b43 100644 (file)
@@ -27,6 +27,8 @@ define Package/libpcre
   URL:=http://www.pcre.org/
 endef
 
   URL:=http://www.pcre.org/
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 7c2e77b1219737ebae02d1abf4fe08f99bffdfeb..35da9a48a26505aa63bfb8ef0bc83c15c5c43209 100644 (file)
@@ -32,6 +32,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 43ceb651145168f5122b00ef3b1d31bb17dab7ce..aa13984505ced38306a8f2cea8af405240fb9ae0 100644 (file)
@@ -160,6 +160,8 @@ define Build/Configure
        #$(SED) 's@US/Eastern@America/New_York@' $(PKG_BUILD_DIR)/src/timezone/Makefile
 endef
 
        #$(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)" \
 define Build/Compile
        $(MAKE) -C "$(PKG_BUILD_DIR)" \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 4334cbc78db188fd5d48ba5e6dd899f8d15f804a..795ba5a095430a56f2e043a709862a9c01f12e32 100644 (file)
@@ -35,6 +35,8 @@ define Package/ptlib/description
  much more advanced.
 endef
 
  much more advanced.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-minsize \
        --enable-opal \
 CONFIGURE_ARGS += \
        --enable-minsize \
        --enable-opal \
index e960aba95c7d7a74c5c3af998da4e190d567f774..59b2579012fe07036e7b52a78813650c3c7105e3 100644 (file)
@@ -33,9 +33,7 @@ define Package/pwlib/description
  System.
 endef
 
  System.
 endef
 
-ifeq ($(ARCH),x86_64)
-  FPIC:=-fPIC
-endif
+TARGET_CFLAGS += $(FPIC)
 
 CONFIGURE_ARGS += \
        --enable-minsize \
 
 CONFIGURE_ARGS += \
        --enable-minsize \
@@ -82,7 +80,7 @@ CONFIGURE_ARGS += \
        --disable-xmlrpc \
 
 CONFIGURE_VARS += \
        --disable-xmlrpc \
 
 CONFIGURE_VARS += \
-       STDCXXFLAGS="$(TARGET_CFLAGS) $(FPIC) -fno-builtin" \
+       STDCXXFLAGS="$(TARGET_CFLAGS) -fno-builtin" \
 
 MAKE_FLAGS += optnoshared
 
 
 MAKE_FLAGS += optnoshared
 
index 06aa5fb7e99e1882b79460c512dabbe988b1d5ad..d53eb53e5e5336a967d3b8759b385d1dcd5861cc 100644 (file)
@@ -60,6 +60,8 @@ $(call Package/radiusclient-ng/Default/description)
  This package contains a RADIUS client.
 endef
 
  This package contains a RADIUS client.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index ecbcc58979eb5eb717fb06d68c1baea05c5957a0..408db7edd7f12297c45868fcde6a7734278d5a46 100644 (file)
@@ -98,6 +98,8 @@ Round Robin Database (RRD) management tools.
        This package contains command line tools used to manage RRDs.
 endef
 
        This package contains command line tools used to manage RRDs.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        $(DISABLE_LARGEFILE) \
        $(DISABLE_NLS) \
 CONFIGURE_ARGS += \
        $(DISABLE_LARGEFILE) \
        $(DISABLE_NLS) \
index 9ed1cd9d54820a54214e6593ccf351a29d32ec0e..208b0a42b17e297d6125a0a0049573d28cd4b88e 100644 (file)
@@ -38,9 +38,11 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
 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
 
                all
 endef
 
index bd64f38e3cf1f7175ab7ec94b159355d52b8a7ae..3985865fc185ccf907c8ed81d72d14e3e3310b91 100644 (file)
@@ -39,6 +39,8 @@ define Package/libspeex/description
        This package contains the shared codec library, needed by other programs.
 endef
 
        This package contains the shared codec library, needed by other programs.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 TARGET_LDFLAGS:=$(TARGET_LDFLAGS) -lnotimpl
 
 define Build/Configure
 TARGET_LDFLAGS:=$(TARGET_LDFLAGS) -lnotimpl
 
 define Build/Configure
index 076f3473bf7310a1e0b5657915f50411634d5d47..415b62379fa630f1383a7001c178502f96ff011a 100644 (file)
@@ -74,6 +74,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 5d00a10b6682a3352a13b99053a15a9575f5fb8e..36ecd83c2cc3bb358d7f415077ad005bb963e53b 100644 (file)
@@ -56,6 +56,8 @@ define Package/sqlite3-cli/description
        multiple formats.
 endef
 
        multiple formats.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
index 44ccffafb9bc9d59527e11d15e62381a3bcbf14f..656395d363e01e66019cb4abfa440e45154d711e 100644 (file)
@@ -33,6 +33,8 @@ define Package/st2205tool/description
   mplayer or LCD4Linux
 endef
 
   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" \
 MAKE_FLAGS += \
        CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/libst2205/" \
        LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
index b3d91af68ed2be7f24c9e4115f6f9d6c784ea5b3..f62376be29413a8592bd2c55fb2e082f57619b9f 100644 (file)
@@ -26,6 +26,8 @@ define Package/taglib
   URL:=http://developer.kde.org/~wheeler/taglib.html
 endef
 
   URL:=http://developer.kde.org/~wheeler/taglib.html
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index f7e0da135d732756aaaa55e334f8f205315fd555..ce3d39a640a6d37ac96fba3a6fb4b78503b4635e 100644 (file)
@@ -27,6 +27,8 @@ define Package/libwrap
   URL:=ftp://ftp.porcupine.org/pub/security/index.html
 endef
 
   URL:=ftp://ftp.porcupine.org/pub/security/index.html
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile   
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
 define Build/Compile   
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
index d765223c6d10960f37e8d35618177272ab3aaeff..a3432c438827b33548a5a830aa33dd1766760207 100644 (file)
@@ -25,6 +25,8 @@ define Package/libtiff
   DEPENDS:=+zlib +libjpeg
 endef
 
   DEPENDS:=+zlib +libjpeg
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += --without-x
 MAKE_FLAGS += all install DESTDIR=$(PKG_INSTALL_DIR)
 
 CONFIGURE_ARGS += --without-x
 MAKE_FLAGS += all install DESTDIR=$(PKG_INSTALL_DIR)
 
index 688c5d2dde9c0de88aa2797a93be9f8fb17b9209..27bfb76f74a10a1db74b14b708b49014818d59f4 100644 (file)
@@ -41,6 +41,8 @@ UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \
        -e 's/cris.*/cris/' \
 )
 
        -e 's/cris.*/cris/' \
 )
 
+TARGET_CFLAGS += $(FPIC)
+
 MAKE_FLAGS:= \
        TOPDIR="$(PKG_BUILD_DIR)/" \
        $(TARGET_CONFIGURE_OPTS) \
 MAKE_FLAGS:= \
        TOPDIR="$(PKG_BUILD_DIR)/" \
        $(TARGET_CONFIGURE_OPTS) \
index 69ed7f9ac1c7ddb326341d57e89cb3a9951ea066..e98a9a3709430ee938cc1cb1320673aa62f6c629 100644 (file)
@@ -40,6 +40,8 @@ define Build/Configure
        $(CP) ./files/Common.mk $(PKG_BUILD_DIR)/
 endef
 
        $(CP) ./files/Common.mk $(PKG_BUILD_DIR)/
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
 define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
index 80f1dcb74f341db7251535aa8b7227e2e16d26a2..8bd19e3f010a5b527dcc185f09785c86b889c465 100644 (file)
@@ -44,6 +44,8 @@ define Build/Configure
        )
 endef
 
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
 endef
 define Build/Compile
        cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
 endef
index 8c82acf081face024df11e8c4f55a514fa6b1954..62b60aa9f04912dc1b1f5b3d30aef0f1e82c9290 100644 (file)
@@ -36,6 +36,7 @@ define Package/libwxbase/description
  etc.) allowing you to write portable programs easily.
 endef
 
  etc.) allowing you to write portable programs easily.
 endef
 
+TARGET_CFLAGS += $(FPIC)
 
 # XXX: aMule *needs* the following configure options to be enabled:
 #      --enable-intl
 
 # XXX: aMule *needs* the following configure options to be enabled:
 #      --enable-intl
index f0ab98de9d4a74432348270a4cb61af718ee86c0..ab27a10cbee3aedff69c00bb94caa77dce9bb28d 100644 (file)
@@ -46,6 +46,8 @@ endef
 define Build/Configure
 endef
 
 define Build/Configure
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
index 43a7ce3683ebeec0d4d07a29ea7f628efd9c945c..450c1961b2fbbfc216084b326bdcabc7fb34b10e 100644 (file)
@@ -34,6 +34,8 @@ endef
 define Build/Configure
 endef
 
 define Build/Configure
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \