diff options
Diffstat (limited to 'user/llvm18/APKBUILD')
-rw-r--r-- | user/llvm18/APKBUILD | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/user/llvm18/APKBUILD b/user/llvm18/APKBUILD index d727afc2a..02a61d738 100644 --- a/user/llvm18/APKBUILD +++ b/user/llvm18/APKBUILD @@ -145,6 +145,14 @@ build() { export CXXFLAGS="$CXXFLAGS -fexcess-precision=fast";; esac + case $CTARGET_ARCH in + pmmx|x86|ppc|armhf|armv7) + # 32-bit 2GB memory ceiling + # 'ld' chokes on 2GB .debug_info, 'scanelf' on binary size + # see also: #1251, #1253, abuild#20 + export CXXFLAGS="$CXXFLAGS -ggdb1";; + esac + cmake -G "Unix Makefiles" -Wno-dev \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/$_prefix \ @@ -258,7 +266,6 @@ libs() { mv "$pkgdir"/$_prefix/lib/$_real_link "$subpkgdir"/usr/lib/ done ln -s $main_soname "$subpkgdir"/usr/lib/$ver_soname - strip "$subpkgdir"/usr/lib/$ver_soname #797 # And also symlink it back to the LLVM prefix. mkdir -p "$subpkgdir"/$_prefix/lib |