diff options
author | Steven Barth <steven@midlink.org> | 2015-09-07 08:03:34 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-09-07 08:03:34 +0000 |
commit | 583e1e95900d2261378c051858ae7d38846980e0 (patch) | |
tree | ba1c477ab752e8ffa9b9b0510e619f8a4bd8aca5 /include | |
parent | 9b6fdc319559a8739893657688b69ee2d4e606b7 (diff) | |
download | master-187ad058-583e1e95900d2261378c051858ae7d38846980e0.tar.gz master-187ad058-583e1e95900d2261378c051858ae7d38846980e0.tar.bz2 master-187ad058-583e1e95900d2261378c051858ae7d38846980e0.zip |
nls.mk: add -rpath-link when needed for NLS support
When a package links to a shared library that depends on libiconv or
libintl shared libraries, specifying directory pathes to them via -L
switches is not enough, see "man 1 ld" -rpath-link description.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46801 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/nls.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/nls.mk b/include/nls.mk index 118000d3ee..51463b9f12 100644 --- a/include/nls.mk +++ b/include/nls.mk @@ -28,12 +28,12 @@ PKG_BUILD_DEPENDS += !BUILD_NLS:libiconv !BUILD_NLS:libintl ICONV_DEPENDS:=+BUILD_NLS:libiconv-full ICONV_CFLAGS:=-I$(ICONV_PREFIX)/include ICONV_CPPFLAGS:=-I$(ICONV_PREFIX)/include -ICONV_LDFLAGS:=-L$(ICONV_PREFIX)/lib +ICONV_LDFLAGS:=-L$(ICONV_PREFIX)/lib -Wl,-rpath-link=$(ICONV_PREFIX)/lib INTL_DEPENDS:=+BUILD_NLS:libintl-full INTL_CFLAGS:=-I$(INTL_PREFIX)/include INTL_CPPFLAGS:=-I$(INTL_PREFIX)/include -INTL_LDFLAGS:=-L$(INTL_PREFIX)/lib +INTL_LDFLAGS:=-L$(INTL_PREFIX)/lib -Wl,-rpath-link=$(INTL_PREFIX)/lib TARGET_CFLAGS += $(ICONV_CFLAGS) $(INTL_CFLAGS) TARGET_CPPFLAGS += $(ICONV_CPPFLAGS) $(INTL_CPPFLAGS) |