diff options
-rw-r--r-- | user/llvm14/APKBUILD | 9 | ||||
-rw-r--r-- | user/llvm18/APKBUILD | 9 |
2 files changed, 16 insertions, 2 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 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 |