From 6e69d37d627b0e58cc40215462c718b6f48a858d Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 19 Aug 2023 19:54:37 +0200 Subject: [PATCH] tools: Fix building ports from git repository --- tools/make-package.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/make-package.sh b/tools/make-package.sh index 9789b5c2..96a8c1c0 100755 --- a/tools/make-package.sh +++ b/tools/make-package.sh @@ -58,7 +58,7 @@ case $format in tar xf $output ;; git) - if ! [ -d $srcdir]; then + if ! [ -d $srcdir ]; then echo "Cloning repository for $name..." git clone $url $srcdir else @@ -78,9 +78,11 @@ esac if ! [ "$set_cc_variables" = "no" ]; then export CC=x86_64-luna-gcc export CXX=x86_64-luna-g++ +export AR=x86_64-luna-ar export PKG_CONFIG=luna-pkg-config export CC_FOR_BUILD=gcc export CXX_FOR_BUILD=g++ +export AR_FOR_BUILD=ar export PKG_CONFIG_FOR_BUILD=pkg-config fi