diff options
author | xentec <xentec@aix0.eu> | 2017-11-04 09:50:21 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-11-14 18:44:36 +0100 |
commit | c5400f0769aa54629a427497676d3d40715694dd (patch) | |
tree | 3f0c0b353b874aa78b07845fcbcea040b13e1625 /community/llvm-libunwind | |
parent | e62454f8396883a4148a6d9072f5b0e4e986d84d (diff) | |
download | aports-c5400f0769aa54629a427497676d3d40715694dd.tar.bz2 aports-c5400f0769aa54629a427497676d3d40715694dd.tar.xz |
[llvm]: build with MinSizeRel and our flags
Diffstat (limited to 'community/llvm-libunwind')
-rw-r--r-- | community/llvm-libunwind/APKBUILD | 6 |
1 files changed, 4 insertions, 2 deletions
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 |