diff --git a/community/dotnet7-build/APKBUILD b/community/dotnet7-build/APKBUILD index 33268ea9c3f8cd07857261c7e91a0886167a4748..c46fe23cfc6d853e4137674b567ac2b52e94301e 100644 --- a/community/dotnet7-build/APKBUILD +++ b/community/dotnet7-build/APKBUILD @@ -261,6 +261,15 @@ build() { export DOTNET_LTTng=0 fi + case "$CARCH" in + x86*) ;; + *) + # clang doesn't implement this outside of x86, and it causes a later configure to fail + export CFLAGS="${CFLAGS/-fstack-clash-protection}" + export CXXFLAGS="${CXXFLAGS/-fstack-clash-protection}" + ;; + esac + # looks for most recent recent version of _artifactsdir local _artifactsdir=$(find $_libdir/dotnet/artifacts/$_pkgver_macro* -maxdepth 0 | sort -r | head -n 1) @@ -298,10 +307,7 @@ build() { ./build.sh \ --with-sdk "$_cli_root" \ --with-packages "$_artifactsdir" \ - -- $args || { - find . -name "CMakeConfigureLog.yaml" -type f -exec sh -c 'echo logfile: $1; cat $1' - {} \; - return 1 - } + -- $args } check() {