Commit b0190e56 authored by nbd's avatar nbd

enable $(FPIC) for a few more packages


git-svn-id: svn://svn.openwrt.org/openwrt/packages@12228 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 1d7a6f90
......@@ -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 \
......
......@@ -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" \
......
......@@ -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
......
......@@ -35,6 +35,7 @@ define Package/argtable/description
each argument.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -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 \
......
......@@ -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)" \
......
......@@ -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)" \
......
......@@ -30,6 +30,8 @@ endef
define Build/Configure
endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
......
......@@ -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
......
......@@ -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 \
......
......@@ -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) \
......
......@@ -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 \
......
......@@ -46,6 +46,8 @@ define Package/libcurl
TITLE:=A client-side URL transfer utility
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -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 \
......
......@@ -74,6 +74,8 @@ define Build/Configure
);
endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
......
......@@ -28,6 +28,8 @@ define Package/libdbus-glib
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -33,6 +33,8 @@ define Package/libexpat/description
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static
......
......@@ -70,6 +70,8 @@ define Build/Configure
)
endef
TARGET_CFLAGS += $(FPIC)
MAKE_FLAGS += \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install \
......
......@@ -33,6 +33,8 @@ define Package/fcgi/description
server specific APIs.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -44,6 +44,8 @@ define Package/file/description
a wrapper around the "magic" library.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -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) \
......
......@@ -35,6 +35,8 @@ define Package/libfreetype/description
efficient and ubiquitous products.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -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) \
......
......@@ -27,6 +27,8 @@ define Package/libgdbm
URL:=http://www.gnu.org/software/gdbm/
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -27,6 +27,8 @@ define Package/libintl
URL:=http://www.gnu.org/software/gettext/
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -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)
......
......@@ -36,6 +36,8 @@ define Package/glib1/description
as trees, hashes, and lists.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -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)
......
......@@ -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 \
......
......@@ -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)
......
......@@ -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)
......
......@@ -90,6 +90,8 @@ define Build/Configure
);
endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
......
......@@ -28,6 +28,8 @@ define Package/id3lib
URL:=http://www.id3lib.org/
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -28,6 +28,8 @@ define Package/libiksemel
DEPENDS:= +libgnutls
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -41,6 +41,8 @@ define Package/jpeg-tools
TITLE+= manipulation tools
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -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) \
......
......@@ -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) \
......
......@@ -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) \
......
......@@ -36,6 +36,8 @@ define Package/libart/description
especially suitable for embedded applications.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static
......
......@@ -38,6 +38,8 @@ define Package/libatomicops/description
architectures.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -31,6 +31,8 @@ define Package/libaudiofile/description
and raw data).
endef
TARGET_CFLAGS += $(FPIC)
define Build/Configure
$(call Build/Configure/Default, \
--enable-shared \
......
......@@ -32,6 +32,8 @@ define Build/Configure
)
endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/bfd \
DESTDIR="$(PKG_INSTALL_DIR)" \
......
......@@ -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)" \
......
......@@ -46,6 +46,8 @@ define Build/Configure
)
endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
......
......@@ -52,6 +52,8 @@ define Build/Configure
)
endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
......
......@@ -43,6 +43,8 @@ define Package/pydnet/description
low-level networking routines.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -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)" \
......
......@@ -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 \
......
......@@ -38,6 +38,8 @@ define Package/libevent/description
the event loop.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -35,6 +35,8 @@ define Build/Configure
)
endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
......
......@@ -33,6 +33,8 @@ define Package/libffi-sable/description
time.
endef
TARGET_CFLAGS += $(FPIC)
define Build/Configure
$(call Build/Configure/Default, \
--enable-shared \
......
......@@ -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 \
......
......@@ -38,6 +38,8 @@ define Package/libgpg-error/description
future.
endef
TARGET_CFLAGS += $(FPIC)
define Build/Configure
$(call Build/Configure/Default, \
--enable-shared \
......
......@@ -39,6 +39,8 @@ define Package/libgphoto2-drivers
TITLE:=Gphoto2 drivers for various cameras
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
......
......@@ -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)" \
......
......@@ -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) \
......
......@@ -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 \
......
......@@ -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)" \
......
......@@ -44,6 +44,8 @@ define Package/libmad/description
Layer I, Layer II, and Layer III (i.e. MP3) - are fully implemented.
endef