diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-06-05 21:26:35 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-06-05 21:27:20 +0200 |
commit | 4c0dfe57c3658eb95e4c88f7770e1a0e40eb5624 (patch) | |
tree | 36317360ffbcc1d65c9a9913968895da848b20bf /mk | |
parent | 3161f81eb604c0d2e9b9c0ee39a1f7f7cf7c8b42 (diff) | |
download | embtoolkit-4c0dfe57c3658eb95e4c88f7770e1a0e40eb5624.tar.gz embtoolkit-4c0dfe57c3658eb95e4c88f7770e1a0e40eb5624.tar.bz2 embtoolkit-4c0dfe57c3658eb95e4c88f7770e1a0e40eb5624.tar.xz |
Build system macros: little tweak of embtk_configure_hostpkg
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/macros.packages.mk | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mk/macros.packages.mk b/mk/macros.packages.mk index 57f3680..b7a5753 100644 --- a/mk/macros.packages.mk +++ b/mk/macros.packages.mk @@ -304,9 +304,12 @@ endef # Usage: # $(call embtk_configure_hostpkg,PACKAGE) # -__embtk_hostpkg_rpathldflags="-Wl,-rpath,$(HOSTTOOLS)/usr/lib" -__embtk_hostpkg_rpath=$(strip $(if $(__embtk_pkg_setrpath), \ - $(__embtk_hostpkg_rpathldflags))) +__embtk_hostpkg_rpathldflags = "-Wl,-rpath,$(HOSTTOOLS)/usr/lib" +__embtk_hostpkg_rpath = $(strip $(if $(__embtk_pkg_setrpath), \ + $(__embtk_hostpkg_rpathldflags))) + +__embtk_hostpkg_ldflags = -L$(HOSTTOOLS)/usr/lib $(__embtk_hostpkg_rpath) +__embtk_hostpkg_cppflags = -I$(HOSTTOOLS)/usr/include define embtk_configure_hostpkg $(if $(EMBTK_BUILDSYS_DEBUG), $(call embtk_pinfo,"Configure $(__embtk_pkg_package) for host...")) @@ -314,8 +317,8 @@ define embtk_configure_hostpkg $(Q)test -e $(__embtk_pkg_srcdir)/configure || exit 1 $(call __embtk_print_configure_opts,$(__embtk_pkg_configureopts)) $(Q)cd $(__embtk_pkg_builddir); \ - CPPFLAGS="-I$(HOSTTOOLS)/usr/include" \ - LDFLAGS="-L$(HOSTTOOLS)/usr/lib $(__embtk_hostpkg_rpath)" \ + CPPFLAGS="$(__embtk_hostpkg_cppflags)" \ + LDFLAGS="$(__embtk_hostpkg_ldflags)" \ PKG_CONFIG="$(PKGCONFIG_BIN)" \ PKG_CONFIG_PATH="$(EMBTK_HOST_PKG_CONFIG_PATH)" \ $(if $(call __embtk_mk_strcmp,$(PKGV),CCACHE),,CC=$(HOSTCC_CACHED)) \ |