diff options
author | Eric Andersen <andersen@codepoet.org> | 2007-03-13 22:59:59 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2007-03-13 22:59:59 +0000 |
commit | 85d7f6f05f87b52a56b603c95e68498f04877f64 (patch) | |
tree | 5a3ca2b8e415e92f331976457635fa28ac037ba3 | |
parent | 0c47ba4dd7ee27bbd6bc5fb805bf344ec2e0d9af (diff) | |
download | buildroot-novena-85d7f6f05f87b52a56b603c95e68498f04877f64.tar.gz buildroot-novena-85d7f6f05f87b52a56b603c95e68498f04877f64.zip |
fixup package LDFLAGS handling
124 files changed, 161 insertions, 6 deletions
diff --git a/package/argus/argus.mk b/package/argus/argus.mk index 8ba5047b0..04a26352f 100644 --- a/package/argus/argus.mk +++ b/package/argus/argus.mk @@ -52,6 +52,7 @@ $(ARGUS_DIR)/.configured: $(ARGUS_DIR)/.unpacked (cd $(ARGUS_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ $(ARGUS_TRAP_CHECK) \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/at/at.mk b/package/at/at.mk index c35f6d0af..bfacd7d85 100644 --- a/package/at/at.mk +++ b/package/at/at.mk @@ -25,6 +25,7 @@ $(AT_DIR)/.configured: $(AT_DIR)/.unpacked (cd $(AT_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/atk/atk.mk b/package/atk/atk.mk index 06eba8dab..3b941518b 100644 --- a/package/atk/atk.mk +++ b/package/atk/atk.mk @@ -30,6 +30,8 @@ $(ATK_DIR)/.unpacked: $(DL_DIR)/$(ATK_SOURCE) $(ATK_DIR)/.configured: $(ATK_DIR)/.unpacked (cd $(ATK_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_c_bigendian=$(ATK_BE) \ ac_cv_func_posix_getpwuid_r=yes \ glib_cv_stack_grows=no \ diff --git a/package/autoconf/autoconf.mk b/package/autoconf/autoconf.mk index 76250d690..66ae6f166 100644 --- a/package/autoconf/autoconf.mk +++ b/package/autoconf/autoconf.mk @@ -24,6 +24,7 @@ $(AUTOCONF_DIR)/.configured: $(AUTOCONF_DIR)/.unpacked (cd $(AUTOCONF_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) EMACS="no" \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/automake/automake.mk b/package/automake/automake.mk index 0f7ab01e0..b51918bd6 100644 --- a/package/automake/automake.mk +++ b/package/automake/automake.mk @@ -25,6 +25,7 @@ $(AUTOMAKE_DIR)/.configured: $(AUTOMAKE_DIR)/.unpacked (cd $(AUTOMAKE_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ WANT_AUTOCONF=2.5 \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/avahi/avahi.mk b/package/avahi/avahi.mk index 379d2e79d..d80d36728 100644 --- a/package/avahi/avahi.mk +++ b/package/avahi/avahi.mk @@ -32,6 +32,7 @@ $(AVAHI_DIR)/.configured: $(AVAHI_DIR)/.unpacked cd $(AVAHI_DIR) && \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ LIBDAEMON_CFLAGS="-I$(STAGING_DIR)/include" \ LIBDAEMON_LIBS="-L$(STAGING_DIR)/lib -ldaemon" \ ac_cv_func_strtod=yes \ diff --git a/package/bash/bash.mk b/package/bash/bash.mk index 75289317f..a66e46393 100644 --- a/package/bash/bash.mk +++ b/package/bash/bash.mk @@ -31,6 +31,7 @@ $(BASH_DIR)/.configured: $(BASH_DIR)/.unpacked (cd $(BASH_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_func_setvbuf_reversed=no \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/berkeleydb/berkeleydb.mk b/package/berkeleydb/berkeleydb.mk index 369044219..0917cb920 100644 --- a/package/berkeleydb/berkeleydb.mk +++ b/package/berkeleydb/berkeleydb.mk @@ -22,6 +22,8 @@ $(DB_DIR)/.dist: $(DL_DIR)/$(DB_SOURCE) $(DB_DIR)/.configured: $(DB_DIR)/.dist (cd $(DB_DIR)/build_unix; rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ../dist/configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/bind/bind.mk b/package/bind/bind.mk index a5cf09d7a..e1dc00a03 100644 --- a/package/bind/bind.mk +++ b/package/bind/bind.mk @@ -31,6 +31,7 @@ $(BIND_DIR2)/Makefile: $(BIND_DIR2)/.unpacked (cd $(BIND_DIR2); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/bison/bison.mk b/package/bison/bison.mk index 4a6a35066..38777feba 100644 --- a/package/bison/bison.mk +++ b/package/bison/bison.mk @@ -25,6 +25,7 @@ $(BISON_DIR)/.configured: $(BISON_DIR)/.unpacked (cd $(BISON_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ gt_cv_func_gnugettext2_libintl=yes \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/boa/boa.mk b/package/boa/boa.mk index 275cd8e8c..08d73fe15 100644 --- a/package/boa/boa.mk +++ b/package/boa/boa.mk @@ -29,6 +29,7 @@ $(BOA_WORKDIR)/Makefile: $(BOA_DIR)/.unpacked (cd $(BOA_WORKDIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ CPPFLAGS="$(SED_CFLAGS)" \ $(BOA_DIR)/configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/bridge/bridge.mk b/package/bridge/bridge.mk index a753ff491..38fce875d 100644 --- a/package/bridge/bridge.mk +++ b/package/bridge/bridge.mk @@ -22,6 +22,7 @@ $(BRIDGE_BUILD_DIR)/.configured: $(BRIDGE_BUILD_DIR)/.unpacked (cd $(BRIDGE_BUILD_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/cairo/cairo.mk b/package/cairo/cairo.mk index 47b06ec55..ec5f6cac9 100644 --- a/package/cairo/cairo.mk +++ b/package/cairo/cairo.mk @@ -30,6 +30,8 @@ $(CAIRO_DIR)/.unpacked: $(DL_DIR)/$(CAIRO_SOURCE) $(CAIRO_DIR)/.configured: $(CAIRO_DIR)/.unpacked (cd $(CAIRO_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_c_bigendian=$(CAIRO_BE) \ ac_cv_func_posix_getpwuid_r=yes \ glib_cv_stack_grows=no \ diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk index 1ece80e24..80bab9c58 100644 --- a/package/coreutils/coreutils.mk +++ b/package/coreutils/coreutils.mk @@ -28,6 +28,7 @@ $(COREUTILS_DIR)/.configured: $(COREUTILS_DIR)/.unpacked (cd $(COREUTILS_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_func_strtod=yes \ ac_fsusage_space=yes \ fu_cv_sys_stat_statfs2_bsize=yes \ diff --git a/package/cvs/cvs.mk b/package/cvs/cvs.mk index 59ba20966..2892838b5 100644 --- a/package/cvs/cvs.mk +++ b/package/cvs/cvs.mk @@ -53,6 +53,7 @@ $(CVS_DIR)/.configured: $(CVS_DIR)/.unpacked (cd $(CVS_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ cvs_cv_func_printf_ptr=yes \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/dash/dash.mk b/package/dash/dash.mk index 51bd1648f..e47537566 100644 --- a/package/dash/dash.mk +++ b/package/dash/dash.mk @@ -29,6 +29,7 @@ $(DASH_DIR)/.configured: $(DASH_DIR)/.unpacked (cd $(DASH_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/dialog/dialog.mk b/package/dialog/dialog.mk index 42558c019..219b5dbdb 100644 --- a/package/dialog/dialog.mk +++ b/package/dialog/dialog.mk @@ -29,6 +29,7 @@ $(DIALOG_DIR)/.configured: $(DIALOG_DIR)/.source (cd $(DIALOG_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/diffutils/diffutils.mk b/package/diffutils/diffutils.mk index 00f0260e6..d9e720313 100644 --- a/package/diffutils/diffutils.mk +++ b/package/diffutils/diffutils.mk @@ -25,6 +25,7 @@ $(DIFFUTILS_DIR)/.configured: $(DIFFUTILS_DIR)/.unpacked (cd $(DIFFUTILS_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_func_strtod=yes \ ac_fsusage_space=yes \ fu_cv_sys_stat_statfs2_bsize=yes \ diff --git a/package/dillo/dillo.mk b/package/dillo/dillo.mk index 3b70bb1a9..9c2835690 100644 --- a/package/dillo/dillo.mk +++ b/package/dillo/dillo.mk @@ -20,6 +20,8 @@ $(DILLO_DIR)/.unpacked: $(DL_DIR)/$(DILLO_SOURCE) $(DILLO_DIR)/.configured: $(DILLO_DIR)/.unpacked (cd $(DILLO_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/directfb/directfb.mk b/package/directfb/directfb.mk index 60b4570ea..4fc010fb6 100644 --- a/package/directfb/directfb.mk +++ b/package/directfb/directfb.mk @@ -23,7 +23,7 @@ $(DIRECTFB_DIR)/.configured: $(DIRECTFB_DIR)/.unpacked (cd $(DIRECTFB_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \ - LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_header_linux_wm97xx_h=no \ ac_cv_header_linux_sisfb_h=no \ ./configure \ diff --git a/package/distcc/distcc.mk b/package/distcc/distcc.mk index 6dc6e5353..1da002655 100644 --- a/package/distcc/distcc.mk +++ b/package/distcc/distcc.mk @@ -24,6 +24,7 @@ $(DISTCC_DIR)/.configured: $(DISTCC_DIR)/.unpacked (cd $(DISTCC_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/dm/dm.mk b/package/dm/dm.mk index cf88ccd74..02f93116d 100644 --- a/package/dm/dm.mk +++ b/package/dm/dm.mk @@ -51,6 +51,7 @@ $(DM_DIR)/.configured: $(DM_DIR)/.unpacked (cd $(DM_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_have_decl_malloc=yes \ gl_cv_func_malloc_0_nonnull=yes \ ac_cv_func_malloc_0_nonnull=yes \ diff --git a/package/dmalloc/dmalloc.mk b/package/dmalloc/dmalloc.mk index d9e6fe98f..ba0c063ff 100644 --- a/package/dmalloc/dmalloc.mk +++ b/package/dmalloc/dmalloc.mk @@ -43,7 +43,7 @@ $(DMALLOC_DIR)/.configured: $(DMALLOC_DIR)/.unpacked (cd $(DMALLOC_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="-g $(TARGET_CFLAGS)" \ - LDFLAGS="-g" \ + LDFLAGS="-g $(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/dmraid/dmraid.mk b/package/dmraid/dmraid.mk index 4283771ec..2c4731a9e 100644 --- a/package/dmraid/dmraid.mk +++ b/package/dmraid/dmraid.mk @@ -27,6 +27,7 @@ $(DMRAID_DIR)/.configured: $(DMRAID_DIR)/.unpacked (cd $(DMRAID_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/dropbear/dropbear.mk b/package/dropbear/dropbear.mk index 92c381344..ac3e68cfc 100644 --- a/package/dropbear/dropbear.mk +++ b/package/dropbear/dropbear.mk @@ -28,6 +28,7 @@ $(DROPBEAR_DIR)/.configured: $(DROPBEAR_DIR)/.unpacked autoconf; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/e2fsprogs/e2fsprogs.mk b/package/e2fsprogs/e2fsprogs.mk index 39d8bea35..7867403b6 100644 --- a/package/e2fsprogs/e2fsprogs.mk +++ b/package/e2fsprogs/e2fsprogs.mk @@ -30,6 +30,7 @@ $(E2FSPROGS_DIR)/.configured: $(E2FSPROGS_DIR)/.unpacked (cd $(E2FSPROGS_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/ed/ed.mk b/package/ed/ed.mk index 4349e2cd6..a81510208 100644 --- a/package/ed/ed.mk +++ b/package/ed/ed.mk @@ -32,6 +32,7 @@ $(ED_DIR)/.configured: $(ED_DIR)/.unpacked (cd $(ED_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/ethtool/ethtool.mk b/package/ethtool/ethtool.mk index 3ddda4177..38a2aeae3 100644 --- a/package/ethtool/ethtool.mk +++ b/package/ethtool/ethtool.mk @@ -21,6 +21,8 @@ $(ETHTOOL_DIR)/.unpacked: $(DL_DIR)/$(ETHTOOL_SOURCE) $(ETHTOOL_DIR)/.configured: $(ETHTOOL_DIR)/.unpacked (cd $(ETHTOOL_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/expat/expat.mk b/package/expat/expat.mk index a0fd3e317..18064a68e 100644 --- a/package/expat/expat.mk +++ b/package/expat/expat.mk @@ -22,6 +22,8 @@ $(EXPAT_DIR)/.unpacked: $(DL_DIR)/$(EXPAT_SOURCE) $(EXPAT_DIR)/.configured: $(EXPAT_DIR)/.unpacked (cd $(EXPAT_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/fakeroot/fakeroot.mk b/package/fakeroot/fakeroot.mk index a792a4379..62da61970 100644 --- a/package/fakeroot/fakeroot.mk +++ b/package/fakeroot/fakeroot.mk @@ -72,6 +72,8 @@ $(FAKEROOT_DIR2)/.configured: $(FAKEROOT_SOURCE_DIR)/.unpacked mkdir -p $(FAKEROOT_DIR2) (cd $(FAKEROOT_DIR2); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ $(FAKEROOT_SOURCE_DIR)/configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/file/file.mk b/package/file/file.mk index c50be303c..4f589d90d 100644 --- a/package/file/file.mk +++ b/package/file/file.mk @@ -62,6 +62,7 @@ $(FILE_DIR2)/.configured: $(FILE_SOURCE_DIR)/.unpacked (cd $(FILE_DIR2); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ $(FILE_SOURCE_DIR)/configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/findutils/findutils.mk b/package/findutils/findutils.mk index f1d60fef4..14d3234a3 100644 --- a/package/findutils/findutils.mk +++ b/package/findutils/findutils.mk @@ -26,6 +26,7 @@ $(FINDUTILS_DIR)/.configured: $(FINDUTILS_DIR)/.unpacked (cd $(FINDUTILS_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_func_setvbuf_reversed=no \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/flex/flex.mk b/package/flex/flex.mk index b58d40420..5c3fc7332 100644 --- a/package/flex/flex.mk +++ b/package/flex/flex.mk @@ -36,6 +36,7 @@ $(FLEX_DIR)/.configured: $(FLEX_DIR)/.unpacked (cd $(FLEX_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/fontconfig/fontconfig.mk b/package/fontconfig/fontconfig.mk index 79ade2b85..e7d6f5361 100644 --- a/package/fontconfig/fontconfig.mk +++ b/package/fontconfig/fontconfig.mk @@ -24,6 +24,7 @@ $(FONTCONFIG_DIR)/.configured: $(FONTCONFIG_DIR)/.unpacked (cd $(FONTCONFIG_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) " \ + LDFLAGS="$(TARGET_LDFLAGS)" \ BUILD_CFLAGS="-O2 -I$(FREETYPE_HOST_DIR)/include/freetype2 -I$(FREETYPE_HOST_DIR)/include" \ ac_cv_func_mmap_fixed_mapped=yes \ ./configure \ diff --git a/package/freetype/freetype.mk b/package/freetype/freetype.mk index aa54145e3..bd4777357 100644 --- a/package/freetype/freetype.mk +++ b/package/freetype/freetype.mk @@ -25,6 +25,7 @@ $(FREETYPE_DIR)/.configured: $(FREETYPE_DIR)/.unpacked (cd $(FREETYPE_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) " \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/gawk/gawk.mk b/package/gawk/gawk.mk index 25a4ee6c0..1969af14d 100644 --- a/package/gawk/gawk.mk +++ b/package/gawk/gawk.mk @@ -26,6 +26,7 @@ $(GAWK_DIR)/.configured: $(GAWK_DIR)/.unpacked (cd $(GAWK_DIR); rm -rf config.cache; autoconf; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_func_getpgrp_void=yes \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/gettext/gettext.mk b/package/gettext/gettext.mk index d3f331c5c..d0b177e56 100644 --- a/package/gettext/gettext.mk +++ b/package/gettext/gettext.mk @@ -29,6 +29,7 @@ $(GETTEXT_DIR)/.configured: $(GETTEXT_DIR)/.unpacked (cd $(GETTEXT_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_func_strtod=yes \ ac_fsusage_space=yes \ fu_cv_sys_stat_statfs2_bsize=yes \ diff --git a/package/gmp/gmp.mk b/package/gmp/gmp.mk index 3894b3015..93a5d653a 100644 --- a/package/gmp/gmp.mk +++ b/package/gmp/gmp.mk @@ -34,6 +34,7 @@ $(GMP_TARGET_DIR)/.configured: $(GMP_DIR)/.unpacked (cd $(GMP_TARGET_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_c_bigendian=$(GMP_BE) \ $(GMP_DIR)/configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/grep/grep.mk b/package/grep/grep.mk index 87b8a93ec..18df66b74 100644 --- a/package/grep/grep.mk +++ b/package/grep/grep.mk @@ -27,6 +27,7 @@ $(GNUGREP_DIR)/.configured: $(GNUGREP_DIR)/.unpacked (cd $(GNUGREP_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/gtk2-engines/gtk2-engines.mk b/package/gtk2-engines/gtk2-engines.mk index 10d75f51b..c8ffa5dc6 100644 --- a/package/gtk2-engines/gtk2-engines.mk +++ b/package/gtk2-engines/gtk2-engines.mk @@ -11,6 +11,8 @@ GTK2_ENGINES_DIR:=$(BUILD_DIR)/gtk-engines-$(GTK2_ENGINES_VERSION) GTK2_ENGINES_BINARY:=libclearlooks.so GTK2_ENGINES_BUILD_ENV=$(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_func_mmap_fixed_mapped=yes \ ac_cv_func_posix_getpwuid_r=yes \ glib_cv_stack_grows=no \ diff --git a/package/gzip/gzip.mk b/package/gzip/gzip.mk index e08eb9e02..9483bc775 100644 --- a/package/gzip/gzip.mk +++ b/package/gzip/gzip.mk @@ -25,6 +25,7 @@ $(GZIP_DIR)/.configured: $(GZIP_DIR)/.unpacked (cd $(GZIP_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/haserl/haserl.mk b/package/haserl/haserl.mk index e873f16e4..fd1880e14 100644 --- a/package/haserl/haserl.mk +++ b/package/haserl/haserl.mk @@ -21,6 +21,8 @@ $(HASERL_DIR)/.unpacked: $(DL_DIR)/$(HASERL_SOURCE) $(HASERL_DIR)/.configured: $(HASERL_DIR)/.unpacked (cd $(HASERL_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/iperf/iperf.mk b/package/iperf/iperf.mk index e1a84b1b6..020ec76d4 100644 --- a/package/iperf/iperf.mk +++ b/package/iperf/iperf.mk @@ -22,6 +22,7 @@ $(IPERF_DIR)/.configured: $(IPERF_DIR)/.unpacked ( cd $(IPERF_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_func_malloc_0_nonnull=yes \ ./configure \ --with-gnu-ld \ diff --git a/package/ipsec-tools/ipsec-tools.mk b/package/ipsec-tools/ipsec-tools.mk index 85968c767..e90f2dabf 100644 --- a/package/ipsec-tools/ipsec-tools.mk +++ b/package/ipsec-tools/ipsec-tools.mk @@ -73,6 +73,7 @@ $(IPSEC_TOOLS_DIR)/.configured: $(IPSEC_TOOLS_DIR)/.source ( cd $(IPSEC_TOOLS_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/jpeg/jpeg.mk b/package/jpeg/jpeg.mk index 5ef3b4134..c6b8fa089 100644 --- a/package/jpeg/jpeg.mk +++ b/package/jpeg/jpeg.mk @@ -39,6 +39,8 @@ $(JPEG_DIR)/.unpacked: $(DL_DIR)/$(JPEG_SOURCE) $(JPEG_DIR)/.configured: $(JPEG_DIR)/.unpacked (cd $(JPEG_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/kexec/kexec.mk b/package/kexec/kexec.mk index 6d279a1dc..9ab256cef 100644 --- a/package/kexec/kexec.mk +++ b/package/kexec/kexec.mk @@ -44,6 +44,7 @@ $(KEXEC_DIR)/.configured: $(KEXEC_DIR)/.unpacked (cd $(KEXEC_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ diff --git a/package/less/less.mk b/package/less/less.mk index 1c29d54bd..420aefbb5 100644 --- a/package/less/less.mk +++ b/package/less/less.mk @@ -21,6 +21,7 @@ $(LESS_DIR)/.configured: $(LESS_DIR)/.source (cd $(LESS_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/libcgi/libcgi.mk b/package/libcgi/libcgi.mk index b7ea5c186..4d0666ed2 100644 --- a/package/libcgi/libcgi.mk +++ b/package/libcgi/libcgi.mk @@ -22,6 +22,7 @@ $(LIBCGI_DIR)/.configured: $(LIBCGI_DIR)/.source (cd $(LIBCGI_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/libcgicc/libcgicc.mk b/package/libcgicc/libcgicc.mk index 2de095973..26e7da26c 100644 --- a/package/libcgicc/libcgicc.mk +++ b/package/libcgicc/libcgicc.mk @@ -23,6 +23,7 @@ $(LIBCGICC_DIR)/.configured: $(LIBCGICC_DIR)/.unpacked (cd $(LIBCGICC_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) " \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/libdaemon/libdaemon.mk b/package/libdaemon/libdaemon.mk index 4ff24aa77..ab02c950f 100644 --- a/package/libdaemon/libdaemon.mk +++ b/package/libdaemon/libdaemon.mk @@ -33,6 +33,7 @@ $(LIBDAEMON_DIR)/.configured: $(LIBDAEMON_DIR)/.unpacked cd $(LIBDAEMON_DIR) && \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/libelf/libelf.mk b/package/libelf/libelf.mk index 7ae02ede0..ca3608dfe 100644 --- a/package/libelf/libelf.mk +++ b/package/libelf/libelf.mk @@ -24,6 +24,8 @@ $(LIBELF_DIR)/.source: $(DL_DIR)/$(LIBELF_SOURCE) $(LIBELF_DIR)/.configured: $(LIBELF_DIR)/.source (cd $(LIBELF_DIR); \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/libevent/libevent.mk b/package/libevent/libevent.mk index 1f8c3f9ac..0964c0799 100644 --- a/package/libevent/libevent.mk +++ b/package/libevent/libevent.mk @@ -26,6 +26,7 @@ $(LIBEVENT_DIR)/.configured: $(LIBEVENT_DIR)/.unpacked (cd $(LIBEVENT_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/libglib12/libglib12.mk b/package/libglib12/libglib12.mk index 720286fef..47de02082 100644 --- a/package/libglib12/libglib12.mk +++ b/package/libglib12/libglib12.mk @@ -29,6 +29,8 @@ $(LIBGLIB12_DIR)/.unpacked: $(DL_DIR)/$(LIBGLIB12_SOURCE) $(LIBGLIB12_DIR)/.configured: $(LIBGLIB12_DIR)/.unpacked (cd $(LIBGLIB12_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_c_bigendian=$(LIBGLIB12_BE) \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk index b700e3c0b..741aded5f 100644 --- a/package/libglib2/libglib2.mk +++ b/package/libglib2/libglib2.mk @@ -31,6 +31,8 @@ $(LIBGLIB2_DIR)/.unpacked: $(DL_DIR)/$(LIBGLIB2_SOURCE) $(LIBGLIB2_DIR)/.configured: $(LIBGLIB2_DIR)/.unpacked (cd $(LIBGLIB2_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_c_bigendian=$(LIBGLIB2_BE) \ ac_cv_func_posix_getpwuid_r=yes \ glib_cv_stack_grows=no \ diff --git a/package/libgtk12/libgtk12.mk b/package/libgtk12/libgtk12.mk index 28e9f6236..76d1175ed 100644 --- a/package/libgtk12/libgtk12.mk +++ b/package/libgtk12/libgtk12.mk @@ -24,6 +24,8 @@ $(LIBGTK12_DIR)/.unpacked: $(DL_DIR)/$(LIBGTK12_SOURCE) $(LIBGTK12_DIR)/.configured: $(LIBGTK12_DIR)/.unpacked (cd $(LIBGTK12_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ GLIB_CONFIG=$(STAGING_DIR)/bin/glib-config \ ac_cv_func_mmap_fixed_mapped=yes \ ./configure \ diff --git a/package/libgtk2/libgtk2.mk b/package/libgtk2/libgtk2.mk index 9cc9f77b3..4785b516a 100644 --- a/package/libgtk2/libgtk2.mk +++ b/package/libgtk2/libgtk2.mk @@ -11,6 +11,8 @@ LIBGTK2_DIR:=$(BUILD_DIR)/gtk+-$(LIBGTK2_VERSION) LIBGTK2_BINARY:=libgtk-x11-2.0.a LIBGTK2_BUILD_ENV=$(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_func_mmap_fixed_mapped=yes \ ac_cv_func_posix_getpwuid_r=yes \ glib_cv_stack_grows=no \ diff --git a/package/libmad/libmad.mk b/package/libmad/libmad.mk index 4b46463f1..dc7791193 100644 --- a/package/libmad/libmad.mk +++ b/package/libmad/libmad.mk @@ -21,6 +21,8 @@ $(LIBMAD_DIR)/.unpacked: $(DL_DIR)/$(LIBMAD_SOURCE) $(LIBMAD_DIR)/.configured: $(LIBMAD_DIR)/.unpacked (cd $(LIBMAD_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/libpcap/libpcap.mk b/package/libpcap/libpcap.mk index 4e657f302..4db9d70d5 100644 --- a/package/libpcap/libpcap.mk +++ b/package/libpcap/libpcap.mk @@ -44,6 +44,7 @@ $(LIBPCAP_DIR)/.configured: $(LIBPCAP_DIR)/.unpacked BUILD_CC=$(TARGET_CC) HOSTCC="$(HOSTCC)" \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/libpng/libpng.mk b/package/libpng/libpng.mk index 7451d4b42..58bc1e67b 100644 --- a/package/libpng/libpng.mk +++ b/package/libpng/libpng.mk @@ -41,6 +41,7 @@ $(LIBPNG_DIR)/.configured: $(LIBPNG_DIR)/.unpacked (cd $(LIBPNG_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_func_memcmp_working=yes \ ac_cv_have_decl_malloc=yes \ gl_cv_func_malloc_0_nonnull=yes \ diff --git a/package/libraw1394/libraw1394.mk b/package/libraw1394/libraw1394.mk index bc9620490..0d8427134 100644 --- a/package/libraw1394/libraw1394.mk +++ b/package/libraw1394/libraw1394.mk @@ -20,6 +20,7 @@ $(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source (cd $(LIBRAW1394_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/libsysfs/libsysfs.mk b/package/libsysfs/libsysfs.mk index 5291b9971..8a0580684 100644 --- a/package/libsysfs/libsysfs.mk +++ b/package/libsysfs/libsysfs.mk @@ -40,6 +40,7 @@ $(LIBSYSFS_DIR)/.configured: $(LIBSYSFS_DIR)/.unpacked (cd $(LIBSYSFS_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) " \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/libtool/libtool.mk b/package/libtool/libtool.mk index b977cd116..f97f9e47d 100644 --- a/package/libtool/libtool.mk +++ b/package/libtool/libtool.mk @@ -24,6 +24,7 @@ $(LIBTOOL_DIR)/.configured: $(LIBTOOL_DIR)/.unpacked (cd $(LIBTOOL_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/libusb/libusb.mk b/package/libusb/libusb.mk index f00de94eb..8ae81a1dd 100644 --- a/package/libusb/libusb.mk +++ b/package/libusb/libusb.mk @@ -31,6 +31,7 @@ $(LIBUSB_DIR)/.configured: $(LIBUSB_DIR)/.unpacked (cd $(LIBUSB_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_header_regex_h=no \ ac_cv_c_bigendian=$(LIBUSB_BE) \ ./configure \ diff --git a/package/lighttpd/lighttpd.mk b/package/lighttpd/lighttpd.mk index aa3c3bada..2b8f6317b 100644 --- a/package/lighttpd/lighttpd.mk +++ b/package/lighttpd/lighttpd.mk @@ -30,6 +30,7 @@ $(LIGHTTPD_DIR)/.configured: $(LIGHTTPD_DIR)/.unpacked (cd $(LIGHTTPD_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/links/links.mk b/package/links/links.mk index 6f4e6aa26..344765ae2 100644 --- a/package/links/links.mk +++ b/package/links/links.mk @@ -20,6 +20,7 @@ $(LINKS_DIR)/.configured: $(LINKS_DIR)/.unpacked (cd $(LINKS_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/lrzsz/lrzsz.mk b/package/lrzsz/lrzsz.mk index 8ca73920b..cf7ea6311 100644 --- a/package/lrzsz/lrzsz.mk +++ b/package/lrzsz/lrzsz.mk @@ -37,6 +37,8 @@ $(LRZSZ_DIR)/.unpacked: $(DL_DIR)/$(LRZSZ_SOURCE) $(LRZSZ_DIR)/.configured: $(LRZSZ_DIR)/.unpacked (cd $(LRZSZ_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/ltrace/ltrace.mk b/package/ltrace/ltrace.mk index a9da788ff..a211ce2db 100644 --- a/package/ltrace/ltrace.mk +++ b/package/ltrace/ltrace.mk @@ -29,6 +29,8 @@ $(LTRACE_DIR)/.source: $(DL_DIR)/$(LTRACE_SOURCE) $(DL_DIR)/$(LTRACE_SOURCE2) $(LTRACE_DIR)/.configured: $(LTRACE_DIR)/.source (cd $(LTRACE_DIR); \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/ltt/ltt.mk b/package/ltt/ltt.mk index 4fddae3b7..f4a2d0962 100644 --- a/package/ltt/ltt.mk +++ b/package/ltt/ltt.mk @@ -70,6 +70,7 @@ $(LTT_DIR2)/.configured: $(LTT_DIR2)/.unpacked (cd $(LTT_DIR2); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk index 7a77f4712..7d5c834a8 100644 --- a/package/lvm2/lvm2.mk +++ b/package/lvm2/lvm2.mk @@ -46,6 +46,7 @@ $(LVM2_DIR)/.configured: $(LVM2_DIR)/.unpacked (cd $(LVM2_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/lzma/lzma.mk b/package/lzma/lzma.mk index 24682fdcd..c425907e0 100644 --- a/package/lzma/lzma.mk +++ b/package/lzma/lzma.mk @@ -62,6 +62,7 @@ $(LZMA_TARGET_DIR)/.configured: $(LZMA_TARGET_DIR)/.source (cd $(LZMA_TARGET_DIR); rm -f config.cache ;\ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) $(LZMA_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_func_malloc_0_nonnull=yes \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/lzo/lzo.mk b/package/lzo/lzo.mk index 69c39f19d..de7e3e325 100644 --- a/package/lzo/lzo.mk +++ b/package/lzo/lzo.mk @@ -31,6 +31,7 @@ $(LZO_DIR)/.configured: $(LZO_DIR)/.unpacked (cd $(LZO_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/m4/m4.mk b/package/m4/m4.mk index 5ecdaae55..d473ccfe4 100644 --- a/package/m4/m4.mk +++ b/package/m4/m4.mk @@ -24,6 +24,7 @@ $(M4_DIR)/.configured: $(M4_DIR)/.unpacked (cd $(M4_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/make/make.mk b/package/make/make.mk index 27ec0dc98..ffca96a38 100644 --- a/package/make/make.mk +++ b/package/make/make.mk @@ -25,6 +25,7 @@ $(GNUMAKE_DIR)/.configured: $(GNUMAKE_DIR)/.unpacked (cd $(GNUMAKE_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ make_cv_sys_gnu_glob=no \ GLOBINC='-I$(GNUMAKE_DIR)/glob' \ GLOBLIB=glob/libglob.a \ diff --git a/package/metacity/metacity.mk b/package/metacity/metacity.mk index 123605cc0..4e1eb56c0 100644 --- a/package/metacity/metacity.mk +++ b/package/metacity/metacity.mk @@ -37,6 +37,7 @@ $(METACITY_DIR)/.configured: $(METACITY_DIR)/.unpacked (cd $(METACITY_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ PKG_CONFIG=$(STAGING_DIR)/usr/bin/pkg-config \ GLIB_CONFIG=$(STAGING_DIR)/bin/glib-config \ diff --git a/package/module-init-tools/module-init-tools.mk b/package/module-init-tools/module-init-tools.mk index 93fe48eb3..a14de6044 100644 --- a/package/module-init-tools/module-init-tools.mk +++ b/package/module-init-tools/module-init-tools.mk @@ -25,6 +25,8 @@ $(MODULE_INIT_TOOLS_DIR)/.unpacked: $(DL_DIR)/$(MODULE_INIT_TOOLS_SOURCE) $(MODULE_INIT_TOOLS_DIR)/.configured: $(MODULE_INIT_TOOLS_DIR)/.unpacked (cd $(MODULE_INIT_TOOLS_DIR); \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ INSTALL=$(MODULE_INIT_TOOLS_DIR)/install-sh \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/modutils/modutils.mk b/package/modutils/modutils.mk index 30d5d4594..bdfc5276c 100644 --- a/package/modutils/modutils.mk +++ b/package/modutils/modutils.mk @@ -30,6 +30,8 @@ $(MODUTILS_DIR1)/.source: $(DL_DIR)/$(MODUTILS_SOURCE) $(MODUTILS_DIR1)/.configured: $(MODUTILS_DIR1)/.source (cd $(MODUTILS_DIR1); \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ INSTALL=$(MODUTILS_DIR1)/install-sh \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/mpfr/mpfr.mk b/package/mpfr/mpfr.mk index 0f760846d..ec59a9193 100644 --- a/package/mpfr/mpfr.mk +++ b/package/mpfr/mpfr.mk @@ -40,6 +40,7 @@ $(MPFR_TARGET_DIR)/.configured: $(MPFR_DIR)/.unpacked $(STAGING_DIR)/lib/$(GMP_B (cd $(MPFR_TARGET_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_c_bigendian=$(MPFR_BE) \ $(MPFR_DIR)/configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/nano/nano.mk b/package/nano/nano.mk index 0c6ce2b06..98eab7c86 100644 --- a/package/nano/nano.mk +++ b/package/nano/nano.mk @@ -24,6 +24,7 @@ $(NANO_DIR)/.configured: $(NANO_DIR)/.unpacked (cd $(NANO_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_header_regex_h=no \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/nbd/nbd.mk b/package/nbd/nbd.mk index cd8d9c1e0..22256c245 100644 --- a/package/nbd/nbd.mk +++ b/package/nbd/nbd.mk @@ -20,6 +20,8 @@ $(NBD_DIR)/.unpacked: $(DL_DIR)/$(NBD_SOURCE) $(NBD_DIR)/.configured: $(NBD_DIR)/.unpacked (cd $(NBD_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ CC=$(TARGET_CC) \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk index 9ccd2d8a9..028e8fb00 100644 --- a/package/ncurses/ncurses.mk +++ b/package/ncurses/ncurses.mk @@ -46,6 +46,7 @@ $(NCURSES_DIR)/.configured: $(NCURSES_DIR)/.dist BUILD_CC="$(HOSTCC)" \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(REAL_GNU_TARGET_NAME) \ diff --git a/package/netcat/netcat.mk b/package/netcat/netcat.mk index c236058de..243a58339 100644 --- a/package/netcat/netcat.mk +++ b/package/netcat/netcat.mk @@ -25,6 +25,7 @@ $(NETCAT_DIR)/.configured: $(NETCAT_DIR)/.unpacked (cd $(NETCAT_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk index 09f2ac03d..09184c7b0 100644 --- a/package/netsnmp/netsnmp.mk +++ b/package/netsnmp/netsnmp.mk @@ -29,6 +29,8 @@ $(NETSNMP_DIR)/.configured: $(NETSNMP_DIR)/.unpacked (cd $(NETSNMP_DIR); autoconf; \ ac_cv_CAN_USE_SYSCTL=no \ PATH=$(TARGET_PATH) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --with-cc=$(TARGET_CROSS)gcc \ --with-ar=$(TARGET_CROSS)ar \ diff --git a/package/newt/newt.mk b/package/newt/newt.mk index f48956959..1a154aeb9 100644 --- a/package/newt/newt.mk +++ b/package/newt/newt.mk @@ -25,6 +25,8 @@ $(NEWT_DIR)/.source: $(DL_DIR)/$(NEWT_SOURCE) $(NEWT_DIR)/.configured: $(NEWT_DIR)/.source (cd $(NEWT_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) $(NEWT_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ @@ -45,7 +47,7 @@ $(NEWT_DIR)/.configured: $(NEWT_DIR)/.source touch $(NEWT_DIR)/.configured; $(NEWT_DIR)/libnewt.so.$(NEWT_VERSION): $(NEWT_DIR)/.configured - $(MAKE) CFLAGS="$(NEWT_CFLAGS)" CC=$(TARGET_CC) -C $(NEWT_DIR) + $(MAKE) CFLAGS="$(TARGET_CFLAGS) $(NEWT_CFLAGS)" CC=$(TARGET_CC) -C $(NEWT_DIR) touch -c $(NEWT_DIR)/libnewt.so.$(NEWT_VERSION) $(STAGING_DIR)/lib/libnewt.a: $(NEWT_DIR)/libnewt.so.$(NEWT_VERSION) diff --git a/package/ntp/ntp.mk b/package/ntp/ntp.mk index afdbdb74f..f09703cf2 100644 --- a/package/ntp/ntp.mk +++ b/package/ntp/ntp.mk @@ -27,6 +27,7 @@ $(NTP_DIR)/.configured: $(NTP_DIR)/.unpacked (cd $(NTP_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_lib_md5_MD5Init=no \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/openntpd/openntpd.mk b/package/openntpd/openntpd.mk index 767cb05fa..6719acfee 100644 --- a/package/openntpd/openntpd.mk +++ b/package/openntpd/openntpd.mk @@ -22,6 +22,7 @@ $(OPENNTPD_DIR)/.configured: $(OPENNTPD_DIR)/.source (cd $(OPENNTPD_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk index 8b47cb920..607e24c07 100644 --- a/package/openssh/openssh.mk +++ b/package/openssh/openssh.mk @@ -21,6 +21,7 @@ $(OPENSSH_DIR)/.configured: $(OPENSSH_DIR)/.unpacked $(TARGET_CONFIGURE_OPTS) \ LD=$(TARGET_CROSS)gcc \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk index d0cedf100..630fa5f2c 100644 --- a/package/openvpn/openvpn.mk +++ b/package/openvpn/openvpn.mk @@ -36,6 +36,7 @@ $(OPENVPN_DIR)/.configured: $(OPENVPN_DIR)/.unpacked (cd $(OPENVPN_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/pango/pango.mk b/package/pango/pango.mk index 26ae3e89f..7065ffa36 100644 --- a/package/pango/pango.mk +++ b/package/pango/pango.mk @@ -18,6 +18,8 @@ PANGO_BE:=no endif PANGO_BUILD_ENV=$(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ac_cv_c_bigendian=$(PANGO_BE) \ ac_cv_func_posix_getpwuid_r=yes \ glib_cv_stack_grows=no \ diff --git a/package/pkgconfig/pkgconfig.mk b/package/pkgconfig/pkgconfig.mk index c86f78e54..b5f34dd69 100644 --- a/package/pkgconfig/pkgconfig.mk +++ b/package/pkgconfig/pkgconfig.mk @@ -23,6 +23,8 @@ $(PKGCONFIG_DIR)/.unpacked: $(DL_DIR)/$(PKGCONFIG_SOURCE) $(PKGCONFIG_DIR)/.configured: $(PKGCONFIG_DIR)/.unpacked (cd $(PKGCONFIG_DIR); rm -rf config.cache; \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --prefix=/usr \ --exec-prefix=/usr \ diff --git a/package/pppd/pppd.mk b/package/pppd/pppd.mk index 66f7d0868..ba1f8cbdd 100644 --- a/package/pppd/pppd.mk +++ b/package/pppd/pppd.mk @@ -31,6 +31,8 @@ $(PPPD_DIR)/.unpacked: $(DL_DIR)/$(PPPD_SOURCE) $(PPPD_DIR)/.configured: $(PPPD_DIR)/.unpacked (cd $(PPPD_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/psmisc/psmisc.mk b/package/psmisc/psmisc.mk index acc651669..ccb7bf90e 100644 --- a/package/psmisc/psmisc.mk +++ b/package/psmisc/psmisc.mk @@ -21,6 +21,7 @@ $(PSMISC_DIR)/.configured: $(PSMISC_DIR)/.unpacked (cd $(PSMISC_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/qte/qte.mk b/package/qte/qte.mk index 8e434bae5..8c8482d6b 100644 --- a/package/qte/qte.mk +++ b/package/qte/qte.mk @@ -138,6 +138,7 @@ $(QTE_QTE_DIR)/.configured: $(QTE_QTE_DIR)/.unpacked $(QTE_TMAKE_DIR)/.unpacked (cd $(@D); export QTDIR=`pwd`; export TMAKEPATH=$(QTE_TMAKE_DIR)/lib/qws/linux-x86-g++; export PATH=$(STAGING_DIR)/bin:$$QTDIR/bin:$$PATH; export LD_LIBRARY_PATH=$$QTDIR/lib:$$LD_LIBRARY_PATH; echo 'yes' | \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ $(QTE_QTE_CONFIGURE) -qconfig qpe -keypad-mode -qvfb -depths 4,8,16,32 -xplatform $(BR2_QTE_CROSS_PLATFORM) \ ); @@ -158,6 +159,7 @@ $(QTE_QVFB_DIR)/.configured: $(QTE_QVFB_DIR)/.unpacked $(QTE_TMAKE_DIR)/.unpacke (cd $(@D); export QTDIR=`pwd`; export TMAKEPATH=$(QTE_TMAKE_DIR)/lib/linux-g++; export $$QTDIR/bin:$$PATH; export LD_LIBRARY_PATH=$$QTDIR/lib:$$LD_LIBRARY_PATH; echo 'yes' | \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ $(QTE_QVFB_CONFIGURE) \ ); @@ -173,6 +175,7 @@ $(QTE_QTOPIA_DIR)/.configured: $(QTE_QTOPIA_DIR)/.unpacked $(QTE_TMAKE_DIR)/.unp (cd $(@D); export QTDIR=$(QTE_QTE_DIR); export QPEDIR=$(QTE_QTOPIA_DIR); export PATH=$(STAGING_DIR)/bin:$$QTDIR/bin:$$PATH; QT3DIR=$(QTE_QTE_DIR); echo 'yes' | \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ $(QTE_QTOPIA_CONFIGURE) --edition phone -no-qtopiadesktop -dqt $(QTE_QT3_DIR) -arch generic -displaysize 160-240 -languages en_US \ -platform linux-g++ -qvfb -xplatform $(BR2_QTE_CROSS_PLATFORM) \ diff --git a/package/qtopia4/qtopia4.mk b/package/qtopia4/qtopia4.mk index e70a0c132..e424e76c3 100644 --- a/package/qtopia4/qtopia4.mk +++ b/package/qtopia4/qtopia4.mk @@ -121,6 +121,7 @@ $(QTOPIA4_TARGET_DIR)/.configured: $(QTOPIA4_TARGET_DIR)/.unpacked (cd $(QTOPIA4_TARGET_DIR); rm -rf config.cache; \ PATH=$(TARGET_PATH) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ CXXFLAGS="$(TARGET_CXXFLAGS)" \ QPEHOME=/usr \ QPEDIR=/usr \ diff --git a/package/raidtools/raidtools.mk b/package/raidtools/raidtools.mk index 235b74760..1ecbbc60b 100644 --- a/package/raidtools/raidtools.mk +++ b/package/raidtools/raidtools.mk @@ -22,6 +22,8 @@ $(RAIDTOOLS2_DIR)/.unpacked: $(DL_DIR)/$(RAIDTOOLS2_SOURCE) $(RAIDTOOLS2_DIR)/.configured: $(RAIDTOOLS2_DIR)/.unpacked (cd $(RAIDTOOLS2_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/rdesktop/rdesktop.mk b/package/rdesktop/rdesktop.mk index 20e8a7cc3..8214d5dff 100644 --- a/package/rdesktop/rdesktop.mk +++ b/package/rdesktop/rdesktop.mk @@ -21,6 +21,8 @@ $(RDESKTOP_DIR)/.unpacked: $(DL_DIR)/$(RDESKTOP_SOURCE) $(RDESKTOP_DIR)/.configured: $(RDESKTOP_DIR)/.unpacked (cd $(RDESKTOP_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/readline/readline.mk b/package/readline/readline.mk index fd82ec7ca..8b66a2a49 100644 --- a/package/readline/readline.mk +++ b/package/readline/readline.mk @@ -24,6 +24,7 @@ $(READLINE_DIR)/.configured: $(READLINE_DIR)/.unpacked (cd $(READLINE_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/rsync/rsync.mk b/package/rsync/rsync.mk index aed105cda..c3dee21a5 100644 --- a/package/rsync/rsync.mk +++ b/package/rsync/rsync.mk @@ -25,6 +25,7 @@ $(RSYNC_DIR)/.configured: $(RSYNC_DIR)/.unpacked (cd $(RSYNC_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/ruby/ruby.mk b/package/ruby/ruby.mk index 9ec020190..7c873c025 100644 --- a/package/ruby/ruby.mk +++ b/package/ruby/ruby.mk @@ -25,6 +25,7 @@ $(RUBY_DIR)/.configured: $(RUBY_DIR)/.unpacked (cd $(RUBY_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/rxvt/rxvt.mk b/package/rxvt/rxvt.mk index 9468ba4eb..efe4bdb3b 100644 --- a/package/rxvt/rxvt.mk +++ b/package/rxvt/rxvt.mk @@ -40,6 +40,8 @@ $(RXVT_DIR)/.unpacked: $(DL_DIR)/$(RXVT_SOURCE) $(RXVT_DIR)/.configured: $(RXVT_DIR)/.unpacked (cd $(RXVT_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ rxvt_cv_ptys=GLIBC \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/samba/samba.mk b/package/samba/samba.mk index 86681fa5c..a645b2628 100644 --- a/package/samba/samba.mk +++ b/package/samba/samba.mk @@ -26,6 +26,7 @@ $(SAMBA_DIR)/.configured: $(SAMBA_DIR)/.unpacked ./autogen.sh; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ samba_cv_HAVE_GETTIMEOFDAY_TZ=yes \ samba_cv_USE_SETREUID=yes \ ./configure \ diff --git a/package/sdl/sdl.mk b/package/sdl/sdl.mk index e25d60acb..4f5bb39e5 100644 --- a/package/sdl/sdl.mk +++ b/package/sdl/sdl.mk @@ -22,6 +22,7 @@ $(SDL_DIR)/.configured: $(SDL_DIR)/.unpacked (cd $(SDL_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/sed/sed.mk b/package/sed/sed.mk index 640e7dd42..995f72e64 100644 --- a/package/sed/sed.mk +++ b/package/sed/sed.mk @@ -97,6 +97,7 @@ $(SED_DIR2)/.configured: $(SED_DIR2)/.unpacked (cd $(SED_DIR2); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" CPPFLAGS="$(SED_CFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/setserial/setserial.mk b/package/setserial/setserial.mk index cea3e541a..688f8e548 100644 --- a/package/setserial/setserial.mk +++ b/package/setserial/setserial.mk @@ -34,6 +34,7 @@ $(SETSERIAL_DIR)/.configured: $(SETSERIAL_DIR)/.unpacked (cd $(SETSERIAL_DIR); rm -rf config.cache ; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) $(SETSERIAL_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/smartmontools/smartmontools.mk b/package/smartmontools/smartmontools.mk index df749b7c0..6ac0b20a9 100644 --- a/package/smartmontools/smartmontools.mk +++ b/package/smartmontools/smartmontools.mk @@ -27,6 +27,7 @@ $(SMARTMONTOOLS_DIR)/.configured: $(SMARTMONTOOLS_DIR)/.unpacked (cd $(SMARTMONTOOLS_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/socat/socat.mk b/package/socat/socat.mk index 7c6239235..15f57ab71 100644 --- a/package/socat/socat.mk +++ b/package/socat/socat.mk @@ -29,6 +29,8 @@ $(SOCAT_WORKDIR)/Makefile: $(SOCAT_DIR)/.unpacked mkdir -p $(SOCAT_WORKDIR) (cd $(SOCAT_WORKDIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" $(SOCAT_DIR)/configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/strace/strace.mk b/package/strace/strace.mk index 1a17db019..631ba1377 100644 --- a/package/strace/strace.mk +++ b/package/strace/strace.mk @@ -30,6 +30,7 @@ $(STRACE_DIR)/.configured: $(STRACE_DIR)/.unpacked $(if $(BR_LARGEFILE),ac_cv_type_stat64=yes,ac_cv_type_stat64=no) \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) $(BR2_STRACE_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" aaa_ac_cv_header_linux_if_packet_h=yes \ ./configure \ --target=$(REAL_GNU_TARGET_NAME) \ diff --git a/package/stunnel/stunnel.mk b/package/stunnel/stunnel.mk index bc1e81067..c18cc1d02 100644 --- a/package/stunnel/stunnel.mk +++ b/package/stunnel/stunnel.mk @@ -25,7 +25,7 @@ $(STUNNEL_DIR)/.configured: $(STUNNEL_DIR)/.unpacked (cd $(STUNNEL_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ - LDFLAGS=-L$(STAGING_DIR)/lib \ + LDFLAGS="$(TARGET_LDFLAGS)" ac_cv_file___dev_ptmx_=yes \ ac_cv_file___dev_ptc_=no \ ./configure \ diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk index 2de748ac4..ccb2e9edd 100644 --- a/package/sudo/sudo.mk +++ b/package/sudo/sudo.mk @@ -25,6 +25,7 @@ $(SUDO_DIR)/.configured: $(SUDO_DIR)/.unpacked $(SUDO_CONFIG_FILE) $(TARGET_CONFIGURE_OPTS) \ ./configure \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ diff --git a/package/tar/tar.mk b/package/tar/tar.mk index b8986a601..4572bb415 100644 --- a/package/tar/tar.mk +++ b/package/tar/tar.mk @@ -25,6 +25,7 @@ $(GNUTAR_DIR)/.configured: $(GNUTAR_DIR)/.unpacked (cd $(GNUTAR_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ac_cv_func_chown_works=yes \ gl_cv_func_chown_follows_symlink=yes \ ./configure \ diff --git a/package/tcl/tcl.mk b/package/tcl/tcl.mk index 614d1039d..f3ccd6df5 100644 --- a/package/tcl/tcl.mk +++ b/package/tcl/tcl.mk @@ -20,6 +20,7 @@ $(TCL_DIR)/.configured: $(TCL_DIR)/.source (cd $(TCL_DIR)/unix; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/tcpdump/dhcpdump.mk b/package/tcpdump/dhcpdump.mk index 3c6283214..7195b85ce 100644 --- a/package/tcpdump/dhcpdump.mk +++ b/package/tcpdump/dhcpdump.mk @@ -27,6 +27,7 @@ $(DHCPDUMP_DIR)/.configured: $(DHCPDUMP_DIR)/.unpacked BUILD_CC=$(TARGET_CC) HOSTCC="$(HOSTCC)" \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/tcpdump/tcpdump.mk b/package/tcpdump/tcpdump.mk index 456e9dc8b..78830a937 100644 --- a/package/tcpdump/tcpdump.mk +++ b/package/tcpdump/tcpdump.mk @@ -28,6 +28,7 @@ $(TCPDUMP_DIR)/.configured: $(TCPDUMP_DIR)/.unpacked BUILD_CC=$(TARGET_CC) HOSTCC="$(HOSTCC)" \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/tftpd/tftpd.mk b/package/tftpd/tftpd.mk index 6bd901df7..d05391207 100644 --- a/package/tftpd/tftpd.mk +++ b/package/tftpd/tftpd.mk @@ -25,6 +25,7 @@ $(TFTP_HPA_DIR)/.configured: $(TFTP_HPA_DIR)/.unpacked (cd $(TFTP_HPA_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/thttpd/thttpd.mk b/package/thttpd/thttpd.mk index 6bb7263ad..9b7298417 100644 --- a/package/thttpd/thttpd.mk +++ b/package/thttpd/thttpd.mk @@ -26,6 +26,7 @@ $(THTTPD_DIR)/.configured: $(THTTPD_DIR)/.unpacked (cd $(THTTPD_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/tiff/tiff.mk b/package/tiff/tiff.mk index c47415ddd..b54c577cf 100644 --- a/package/tiff/tiff.mk +++ b/package/tiff/tiff.mk @@ -23,6 +23,8 @@ $(TIFF_DIR)/.unpacked: $(DL_DIR)/$(TIFF_SOURCE) $(TIFF_DIR)/.configured: $(TIFF_DIR)/.unpacked (cd $(TIFF_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/tn5250/tn5250.mk b/package/tn5250/tn5250.mk index 8f19c64fc..346e3ec8e 100644 --- a/package/tn5250/tn5250.mk +++ b/package/tn5250/tn5250.mk @@ -13,6 +13,8 @@ $(TN5250_DIR)/.dist: $(DL_DIR)/$(TN5250_SOURCE) $(TN5250_DIR)/.configured: $(TN5250_DIR)/.dist (cd $(TN5250_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/usbutils/usbutils.mk b/package/usbutils/usbutils.mk index 797e6b720..56786b62c 100644 --- a/package/usbutils/usbutils.mk +++ b/package/usbutils/usbutils.mk @@ -25,7 +25,7 @@ $(USBUTILS_DIR)/.configured: $(USBUTILS_DIR)/.unpacked (cd $(USBUTILS_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) -I$(TARGET_DIR)/usr/include" \ - LDFLAGS="-L$(TARGET_DIR)/usr/lib" \ + LDFLAGS="$(TARGET_LDFLAGS)" ac_cv_func_malloc_0_nonnull=yes \ ./configure \ --target=$(GNU_TARGET_NAME) \ diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk index a7fd1bcb6..9c6767530 100644 --- a/package/util-linux/util-linux.mk +++ b/package/util-linux/util-linux.mk @@ -26,6 +26,7 @@ $(UTIL-LINUX_DIR)/.configured: $(UTIL-LINUX_DIR)/.unpacked (cd $(UTIL-LINUX_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --prefix=/usr \ diff --git a/package/valgrind/valgrind.mk b/package/valgrind/valgrind.mk index f96517cb0..e2a634641 100644 --- a/package/valgrind/valgrind.mk +++ b/package/valgrind/valgrind.mk @@ -24,6 +24,8 @@ $(VALGRIND_DIR)/.patched: $(VALGRIND_DIR)/.unpacked $(VALGRIND_DIR)/.configured: $(VALGRIND_DIR)/.patched (cd $(VALGRIND_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/vtun/vtun.mk b/package/vtun/vtun.mk index a002af4dc..97573f904 100644 --- a/package/vtun/vtun.mk +++ b/package/vtun/vtun.mk @@ -27,6 +27,8 @@ $(VTUN_DIR)/.unpacked: $(DL_DIR)/$(VTUN_SOURCE) $(VTUN_DIR)/.configured: $(VTUN_DIR)/.unpacked (cd $(VTUN_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/wget/wget.mk b/package/wget/wget.mk index c266afcb4..6899e525a 100644 --- a/package/wget/wget.mk +++ b/package/wget/wget.mk @@ -24,6 +24,7 @@ $(WGET_DIR)/.configured: $(WGET_DIR)/.unpacked (cd $(WGET_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/which/which.mk b/package/which/which.mk index c284f7978..722b03391 100644 --- a/package/which/which.mk +++ b/package/which/which.mk @@ -24,6 +24,7 @@ $(WHICH_DIR)/.configured: $(WHICH_DIR)/.unpacked (cd $(WHICH_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ diff --git a/package/xfsprogs/xfsprogs.mk b/package/xfsprogs/xfsprogs.mk index 901282e86..4cb3aecc7 100644 --- a/package/xfsprogs/xfsprogs.mk +++ b/package/xfsprogs/xfsprogs.mk @@ -36,7 +36,7 @@ $(XFSPROGS_DIR)/.configured: $(XFSPROGS_DIR)/.unpacked $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ CPPFLAGS=-I$(E2FSPROGS_DIR)/lib \ - LDFLAGS=-L$(E2FSPROGS_DIR)/lib \ + LDFLAGS="$(TARGET_LDFLAGS) -L$(E2FSPROGS_DIR)/lib" \ LIBTOOL=$(LIBTOOL_DIR)/libtool \ INSTALL_USER=$(shell whoami) \ INSTALL_GROUP=$(shell groups | cut -d" " -f1) \ diff --git a/package/zlib/zlib.mk b/package/zlib/zlib.mk index 5560a3bdc..fd40ea26a 100644 --- a/package/zlib/zlib.mk +++ b/package/zlib/zlib.mk @@ -25,6 +25,7 @@ $(ZLIB_DIR)/.configured: $(ZLIB_DIR)/.source (cd $(ZLIB_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(ZLIB_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" ./configure \ --shared \ --prefix=/usr \ |