enable $(FPIC) for a few more packages
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 6 Aug 2008 22:43:15 +0000 (22:43 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 6 Aug 2008 22:43:15 +0000 (22:43 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12228 3c298f89-4303-0410-b956-a3cf2f4a3e73

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 22e695b..8b78787 100644 (file)
@@ -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 \
index 1c93371..17c2856 100644 (file)
@@ -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" \
index a9394dc..6f6ec57 100644 (file)
@@ -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
index 90e2676..a6fc0b7 100644 (file)
@@ -35,6 +35,7 @@ define Package/argtable/description
        each argument.
 endef
 
+TARGET_CFLAGS += $(FPIC)
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index a5371d6..d7980fa 100644 (file)
@@ -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 \
index 7453862..1cc87fe 100644 (file)
@@ -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)" \
index d50c21c..16696a5 100644 (file)
@@ -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)" \
index 9bd2d42..e16731b 100644 (file)
@@ -30,6 +30,8 @@ endef
 define Build/Configure
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
index 2d24080..22ac296 100644 (file)
@@ -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
index e1f6ba1..e5dc2b9 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
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
   --disable-wdb \
   --disable-apache \
index 868f58a..c3beda8 100644 (file)
@@ -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) \
index 3b18040..80bcd6b 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
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 0f80736..5bb0a00 100644 (file)
@@ -46,6 +46,8 @@ define Package/libcurl
   TITLE:=A client-side URL transfer utility
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 5eb0dc4..aac4630 100644 (file)
@@ -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 \
index faafcce..5f8abf2 100644 (file)
@@ -74,6 +74,8 @@ define Build/Configure
        );
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
index 829cddc..30521fa 100644 (file)
@@ -28,6 +28,8 @@ define Package/libdbus-glib
 endef
 
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index a377ab8..7d2ab56 100644 (file)
@@ -33,6 +33,8 @@ define Package/libexpat/description
 endef
 
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static
index 63f91ba..11ba487 100644 (file)
@@ -70,6 +70,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 MAKE_FLAGS += \
        DESTDIR="$(PKG_INSTALL_DIR)" \
        all install \
index 8f5a781..0c81d7f 100644 (file)
@@ -33,6 +33,8 @@ define Package/fcgi/description
  server specific APIs.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 3192591..c7b67e3 100644 (file)
@@ -44,6 +44,8 @@ define Package/file/description
  a wrapper around the "magic" library. 
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index e84c147..8ddabeb 100644 (file)
@@ -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) \
index 7592c8c..dd67a7b 100644 (file)
@@ -35,6 +35,8 @@ define Package/libfreetype/description
  efficient and ubiquitous products.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 399f7c6..2649ee8 100644 (file)
@@ -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) \
index f86743b..c504c05 100644 (file)
@@ -27,6 +27,8 @@ define Package/libgdbm
   URL:=http://www.gnu.org/software/gdbm/
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 0b14893..8121ab0 100644 (file)
@@ -27,6 +27,8 @@ define Package/libintl
   URL:=http://www.gnu.org/software/gettext/
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 27fbfee..c63e9af 100644 (file)
@@ -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)
index 024c8c8..7f8229f 100644 (file)
@@ -36,6 +36,8 @@ define Package/glib1/description
  as trees, hashes, and lists.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 750f631..a740b98 100644 (file)
@@ -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)
index 42ee26f..68a79b8 100644 (file)
@@ -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 \
index 1c52d14..b83e65f 100644 (file)
@@ -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)
index e5c1ed3..60274ff 100644 (file)
@@ -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)
index 79d6473..48e10c1 100644 (file)
@@ -90,6 +90,8 @@ define Build/Configure
        );
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index a099bd8..9982099 100644 (file)
@@ -28,6 +28,8 @@ define Package/id3lib
   URL:=http://www.id3lib.org/
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 9955358..388c469 100644 (file)
@@ -28,6 +28,8 @@ define Package/libiksemel
   DEPENDS:= +libgnutls
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index d1321ee..64b39a9 100644 (file)
@@ -41,6 +41,8 @@ define Package/jpeg-tools
   TITLE+= manipulation tools
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index d2741d7..0137b40 100644 (file)
@@ -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) \
index 37da29e..3258995 100644 (file)
@@ -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) \
index 76c9575..5f9efef 100644 (file)
@@ -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) \
index eb8fed8..7a86ac7 100644 (file)
@@ -36,6 +36,8 @@ define Package/libart/description
        especially suitable for embedded applications.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static
index 3d3721a..26a0433 100644 (file)
@@ -38,6 +38,8 @@ define Package/libatomicops/description
   architectures.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 31df245..b6fadb8 100644 (file)
@@ -31,6 +31,8 @@ define Package/libaudiofile/description
        and raw data).
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
index bd115a8..4264eca 100644 (file)
@@ -32,6 +32,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)/bfd \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 8aa81b8..5696b5c 100644 (file)
@@ -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)" \
index 694827a..9b203a3 100644 (file)
@@ -46,6 +46,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 2f4f029..39767b3 100644 (file)
@@ -52,6 +52,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 5bd4a72..436cde4 100644 (file)
@@ -43,6 +43,8 @@ define Package/pydnet/description
        low-level networking routines.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index af09790..95fc451 100644 (file)
@@ -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)" \
index 7be0415..50b9e1a 100644 (file)
@@ -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 \
index 7d8b662..8f45be0 100644 (file)
@@ -38,6 +38,8 @@ define Package/libevent/description
        the event loop.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 945c4bc..edab42d 100644 (file)
@@ -35,6 +35,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index cfb1396..2d6e9c1 100644 (file)
@@ -33,6 +33,8 @@ define Package/libffi-sable/description
        time.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
index 4158f64..2da5aad 100644 (file)
@@ -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 \
index 5511784..4e0e315 100644 (file)
@@ -38,6 +38,8 @@ define Package/libgpg-error/description
        future.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
index 9b7d2dc..7a65489 100644 (file)
@@ -39,6 +39,8 @@ define Package/libgphoto2-drivers
   TITLE:=Gphoto2 drivers for various cameras
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 4dc482c..319d822 100644 (file)
@@ -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)" \
index e0b9b57..f651d47 100644 (file)
@@ -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) \
index d21ef5f..e5ce456 100644 (file)
@@ -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 \
index f713cc6..f6b969b 100644 (file)
@@ -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)" \
index 30360b9..7c3cad3 100644 (file)
@@ -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 \
index f71b220..cbf69d3 100644 (file)
@@ -37,6 +37,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 4c04bb1..d11a029 100644 (file)
@@ -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,\
index ace9fc8..24fee43 100644 (file)
@@ -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)" \
index c58aa9a..8d38132 100644 (file)
@@ -33,6 +33,8 @@ ifeq ($(CONFIG_BIG_ENDIAN),y)
   ENDIANESS:=big
 endif
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 198d09b..42aea86 100644 (file)
@@ -33,6 +33,8 @@ ifeq ($(CONFIG_BIG_ENDIAN),y)
   ENDIANESS:=big
 endif
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 1997b20..e20880e 100644 (file)
@@ -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 \
index 2c09539..5b765f2 100644 (file)
@@ -33,6 +33,8 @@ define Package/libnfnetlink/description
  and/or management tools in userspace.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-static \
        --enable-shared
index bf0cc72..badd574 100644 (file)
@@ -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 += \
index ace4ca0..dde7df9 100644 (file)
@@ -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" \
index cf793ee..e32ad7f 100644 (file)
@@ -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
index bfe3bf6..ea6f0eb 100644 (file)
@@ -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 \
index 01981c2..0d4c2f9 100644 (file)
@@ -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) \
index eb12963..ae322a2 100644 (file)
@@ -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 \
index eb5c777..3da0908 100644 (file)
@@ -33,6 +33,8 @@ define Package/libpam/description
 
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
index 0030549..6ce0daf 100644 (file)
@@ -34,6 +34,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 2c75045..1ded278 100644 (file)
@@ -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)" \
index 9211717..9b616eb 100644 (file)
@@ -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)" \
index 5fe3c72..dc8f1a8 100644 (file)
@@ -38,6 +38,8 @@ define Build/Configure
        );
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 03ba99e..0e9585f 100644 (file)
@@ -33,6 +33,8 @@ define Package/libsamplerate/description
  Converter for audio.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --disable-fftw \
 
index 45205f3..285f3a8 100644 (file)
@@ -45,6 +45,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index c007a7d..4c04c98 100644 (file)
@@ -34,6 +34,8 @@ define Package/libsigcxx/description
  whether it is static or virtual.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 8bca9fe..2295519 100644 (file)
@@ -32,6 +32,8 @@ define Package/libsndfile/description
  containing sampled audio data.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --disable-flac
 
index 4b8e7f4..1c8c98d 100644 (file)
@@ -36,6 +36,8 @@ define Package/libtasn1/description
  Distinguish Encoding Rules (DER) manipulation.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
                --enable-shared \
                --enable-static
index 2bc9f71..0e73e38 100644 (file)
@@ -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 \
index 9ebef15..ab7e7e1 100644 (file)
@@ -57,6 +57,8 @@ define Build/Configure
        );
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CCOPT="$(TARGET_CFLAGS)" \
index d87154b..ed6ad4c 100644 (file)
@@ -32,6 +32,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 1ed04cf..24a3ebf 100644 (file)
@@ -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, \
index da986c6..b31966e 100644 (file)
@@ -34,6 +34,7 @@ define Package/libxml2/description
  A library for manipulating XML and HTML resources.
 endef
 
+TARGET_CFLAGS += $(FPIC)
 
 CONFIGURE_ARGS += \
        --enable-shared \
index a6f81c6..1ba4e93 100644 (file)
@@ -60,6 +60,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 68e278f..86c216a 100644 (file)
@@ -38,6 +38,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CFLAGS_O="$(TARGET_CFLAGS)" \
index 9708bd1..501f499 100644 (file)
@@ -31,6 +31,8 @@ endef
 define Build/Configure
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)/src \
                $(TARGET_CONFIGURE_OPTS) \
index eba3600..33d0668 100644 (file)
@@ -66,6 +66,8 @@ define Build/Configure
        );
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
index ff99c64..7407a97 100644 (file)
@@ -29,6 +29,8 @@ define Package/libneon
 endef
 
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index e599c4d..f86a4e0 100644 (file)
@@ -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 \
index 3d3c8f5..bbc1e42 100644 (file)
@@ -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 \
index e927a44..5fbddb0 100644 (file)
@@ -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 \
index 7b14548..bc60e40 100644 (file)
@@ -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 \
index d01e987..c491f3b 100644 (file)
@@ -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 \
index 8a2602e..9511352 100644 (file)
@@ -42,6 +42,8 @@ $(call Package/js/Default)
  TITLE+= (library)
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index ab43d9c..ac039cc 100644 (file)
@@ -27,6 +27,8 @@ define Package/libpcre
   URL:=http://www.pcre.org/
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
index 7c2e77b..35da9a4 100644 (file)
@@ -32,6 +32,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 43ceb65..aa13984 100644 (file)
@@ -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)" \
index 4334cbc..795ba5a 100644 (file)
@@ -35,6 +35,8 @@ define Package/ptlib/description
  much more advanced.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 CONFIGURE_ARGS += \
        --enable-minsize \
        --enable-opal \
index e960aba..59b2579 100644 (file)
@@ -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
 
index 06aa5fb..d53eb53 100644 (file)
@@ -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 \
index ecbcc58..408db7e 100644 (file)
@@ -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) \
index 9ed1cd9..208b0a4 100644 (file)
@@ -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
 
index bd64f38..3985865 100644 (file)
@@ -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
index 076f347..415b623 100644 (file)
@@ -74,6 +74,8 @@ define Build/Configure
        )
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
index 5d00a10..36ecd83 100644 (file)
@@ -56,6 +56,8 @@ define Package/sqlite3-cli/description
        multiple formats.
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Configure
        $(call Build/Configure/Default, \
                --enable-shared \
index 44ccffa..656395d 100644 (file)
@@ -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" \
index b3d91af..f62376b 100644 (file)
@@ -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 \
index f7e0da1..ce3d39a 100644 (file)
@@ -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) \
index d765223..a3432c4 100644 (file)
@@ -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)
 
index 688c5d2..27bfb76 100644 (file)
@@ -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) \
index 69ed7f9..e98a9a3 100644 (file)
@@ -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)
index 80f1dcb..8bd19e3 100644 (file)
@@ -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
index 8c82acf..62b60aa 100644 (file)
@@ -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
index f0ab98d..ab27a10 100644 (file)
@@ -46,6 +46,8 @@ endef
 define Build/Configure
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
index 43a7ce3..450c196 100644 (file)
@@ -34,6 +34,8 @@ endef
 define Build/Configure
 endef
 
+TARGET_CFLAGS += $(FPIC)
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \