From c6035d273bf51ac529fa6ce27e924c979d7c225b Mon Sep 17 00:00:00 2001 From: lxh Date: Mon, 11 Nov 2024 11:10:09 +0800 Subject: [PATCH] =?UTF-8?q?libffi=E5=BA=93=E7=9A=84hpkbuild=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lxh --- thirdparty/libffi/HPKBUILD | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/thirdparty/libffi/HPKBUILD b/thirdparty/libffi/HPKBUILD index 647cdcd0..86edc0bf 100755 --- a/thirdparty/libffi/HPKBUILD +++ b/thirdparty/libffi/HPKBUILD @@ -58,9 +58,9 @@ buildgnutool() { fi tar -xf $toolname-$toolver.tar.gz cd $toolpath - ./configure --prefix=$prefixpath >> `pwd`/build.log 2>&1 - $MAKE VERBOSE=1 >> `pwd`/build.log 2>&1 - $MAKE install VERBOSE=1 >> `pwd`/build.log 2>&1 + PKG_CONFIG_LIBDIR="${pkgconfigpath}" ./configure --prefix=$prefixpath >> $buildlog 2>&1 + $MAKE VERBOSE=1 >> $buildlog 2>&1 + $MAKE install VERBOSE=1 >> $buildlog 2>&1 if [ $? -ne 0 ];then return -2 fi @@ -95,7 +95,7 @@ prepare() { mkdir $builddir/$ARCH-build if [ $genconfigure == true ];then cd $builddir - $AUTORECONF -v -i >> `pwd`/build.log 2>&1 + $AUTORECONF -v -i >> $buildlog 2>&1 if [ $? -ne 0 ];then return -3 fi @@ -124,7 +124,8 @@ prepare() { build() { cd $builddir - ./configure "$@" --host=$host --enable-static=yes --disable-multi-os-directory \ + PKG_CONFIG_LIBDIR="${pkgconfigpath}" ./configure "$@" \ + --host=$host --enable-static=yes --disable-multi-os-directory \ --enable-builddir=$ARCH-build > $buildlog 2>&1 $MAKE -C $ARCH-build VERBOSE=1 >> $buildlog 2>&1 ret=$? -- Gitee