diff options
Diffstat (limited to 'community')
-rw-r--r-- | community/lld/APKBUILD | 8 | ||||
-rw-r--r-- | community/llvm-libunwind/APKBUILD | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/community/lld/APKBUILD b/community/lld/APKBUILD index b30bde9031..ea2f444ceb 100644 --- a/community/lld/APKBUILD +++ b/community/lld/APKBUILD @@ -25,11 +25,13 @@ build() { cd "$builddir"/build cmake .. \ - -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_VERBOSE_MAKEFILE=OFF \ + -DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \ + -DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \ + -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ - -DCMAKE_C_FLAGS="$CFLAGS" \ + \ -DCMAKE_SKIP_INSTALL_RPATH=ON \ -DLLVM_INCLUDE_TESTS=ON make diff --git a/community/llvm-libunwind/APKBUILD b/community/llvm-libunwind/APKBUILD index 0af66f4241..9d179da796 100644 --- a/community/llvm-libunwind/APKBUILD +++ b/community/llvm-libunwind/APKBUILD @@ -23,9 +23,11 @@ build() { cmake .. \ -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \ + -DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \ + -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ - -DCMAKE_C_FLAGS="$CFLAGS" \ + \ -DLLVM_CONFIG_PATH="/usr/lib/llvm$_llvmver/bin/llvm-config" \ -DLIBUNWIND_HAS_NODEFAULTLIBS_FLAG=OFF |