From 79d317802c0ea3374658609e9300770bab961b25 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 25 Sep 2022 15:17:04 +0200 Subject: community/julia: another try to build julia --- community/julia/PKGBUILD | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'community/julia') diff --git a/community/julia/PKGBUILD b/community/julia/PKGBUILD index e8de39ab..a00df5b2 100644 --- a/community/julia/PKGBUILD +++ b/community/julia/PKGBUILD @@ -1,17 +1,31 @@ eval "$( declare -f build | \ sed ' - /^\s*make / i CFLAGS+=" -march=pentium4" \ - CXXFLAGS+=" -march=pentium4" - /MARCH="/ s/"x86-64"/"pentium4"/ + /.*make.*$_buildopts/ i \ + _buildopts="${_buildopts/MARCH=x86-64/MARCH=pentium4}" \ ' )" eval "$( - declare -f package_julia | \ + declare -f package | \ sed ' - /^\s*make / i CFLAGS+=" -march=pentium4" \ - CXXFLAGS+=" -march=pentium4" - /MARCH="/ s/"x86-64"/"pentium4"/ + /.*make.*$_buildopts/ i \ + _buildopts="${_buildopts/MARCH=x86-64/MARCH=pentium4}" \ + ' +)" + +eval "$( + declare -f build | \ + sed ' + /^\s*make / i export CFLAGS+=" -march=pentium4" \ + export CXXFLAGS+=" -march=pentium4" + ' +)" + +eval "$( + declare -f package | \ + sed ' + /^\s*make / i export CFLAGS+=" -march=pentium4" \ + export CXXFLAGS+=" -march=pentium4" ' )" -- cgit v1.2.3-54-g00ecf