diff options
author | Zach van Rijn <me@zv.io> | 2024-09-03 15:51:56 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-10-17 00:58:49 -0500 |
commit | 9a7c55f1eec0ce50d7f655608bb7b13f3e500b9c (patch) | |
tree | 26c23213d0e65ddf26a9e9d8f2dd74d1bffe8b1d /user/llvm14/APKBUILD | |
parent | c96bfdf277cc43235d90b0cbfcd09b026cef1f1d (diff) | |
download | packages-9a7c55f1eec0ce50d7f655608bb7b13f3e500b9c.tar.gz packages-9a7c55f1eec0ce50d7f655608bb7b13f3e500b9c.tar.bz2 packages-9a7c55f1eec0ce50d7f655608bb7b13f3e500b9c.tar.xz packages-9a7c55f1eec0ce50d7f655608bb7b13f3e500b9c.zip |
user/llvm*: Generate less debug info on 32-bit
Full debug-info for LLVM causes multiple failures on 32-bit builders,
including with the linker, scanelf, and tar.
On 32-bit only, use -ggdb1 to reduce the level of debuginfo output.
Since debug information is reduced, we no longer need the `strip`
command from #797.
Closes: #1251, #1253
Diffstat (limited to 'user/llvm14/APKBUILD')
-rw-r--r-- | user/llvm14/APKBUILD | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/user/llvm14/APKBUILD b/user/llvm14/APKBUILD index 86b4789ea..77a39f78d 100644 --- a/user/llvm14/APKBUILD +++ b/user/llvm14/APKBUILD @@ -110,6 +110,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 \ @@ -213,7 +221,6 @@ libs() { mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/$_prefix/lib/$main_soname "$subpkgdir"/usr/lib/ 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 |