From 2dd87fe03376618bf1aaea316ce5fa94ed841614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Sat, 27 Feb 2016 19:19:26 +0100 Subject: Fix linking issue when building mpfr on Arch Linux due to library pathname conflicts not properly handled by libtool. Since .la files need not be included in distribution tarballs, path fixups are applied to them directly. (see , reported by noninc.) --- pkg.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg.build') diff --git a/pkg.build b/pkg.build index dee48376..e61ac95e 100644 --- a/pkg.build +++ b/pkg.build @@ -41,8 +41,11 @@ if ! is_build_script_done patch; then fi; [ -x ${PKG_SUBDIR}/configure ] && \ cp portage/config.cache ${PKG_BUILD_DIR}/; - [ ${PKG_LIBTOOL_MIDIPIX:-0} -eq 1 ] && \ + if [ ${PKG_LIBTOOL_MIDIPIX:-0} -eq 1 ]; then cp portage/libtool.midipix ${PKG_SUBDIR}/; + sed -i.orig -e "/^libdir=/s/libdir='/libdir='\$PKG_PREFIX\//"\ + ${PKG_SUBDIR}/libtool.midipix; + fi; set_build_script_done patch -configure; fi; cd ${PKG_BUILD_DIR}; -- cgit v1.2.3