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 /main | |
parent | e62454f8396883a4148a6d9072f5b0e4e986d84d (diff) | |
download | aports-c5400f0769aa54629a427497676d3d40715694dd.tar.bz2 aports-c5400f0769aa54629a427497676d3d40715694dd.tar.xz |
[llvm]: build with MinSizeRel and our flags
Diffstat (limited to 'main')
-rw-r--r-- | main/clang/APKBUILD | 6 | ||||
-rw-r--r-- | main/compiler-rt/APKBUILD | 6 | ||||
-rw-r--r-- | main/llvm5/APKBUILD | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/main/clang/APKBUILD b/main/clang/APKBUILD index f08bb9b239..f56e6e3b9e 100644 --- a/main/clang/APKBUILD +++ b/main/clang/APKBUILD @@ -46,9 +46,13 @@ build() { cd "$builddir"/build cmake .. -Wno-dev \ - -DCMAKE_BUILD_TYPE=Release \ + -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_VERBOSE_MAKEFILE=OFF \ + \ -DCLANG_VENDOR=Alpine \ -DCLANG_BUILD_EXAMPLES=OFF \ -DCLANG_INCLUDE_DOCS=ON \ diff --git a/main/compiler-rt/APKBUILD b/main/compiler-rt/APKBUILD index b876450203..04f4571230 100644 --- a/main/compiler-rt/APKBUILD +++ b/main/compiler-rt/APKBUILD @@ -31,8 +31,12 @@ build() { -DCMAKE_C_COMPILER=clang \ -DCMAKE_CXX_COMPILER=clang++ \ \ - -DCMAKE_BUILD_TYPE=Release \ + -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 \ + \ -DCOMPILER_RT_INCLUDE_TESTS=ON \ -DCOMPILER_RT_BUILD_SANITIZERS=OFF \ -DCOMPILER_RT_BUILD_XRAY=OFF diff --git a/main/llvm5/APKBUILD b/main/llvm5/APKBUILD index d51f99ab04..43b3257d6b 100644 --- a/main/llvm5/APKBUILD +++ b/main/llvm5/APKBUILD @@ -75,8 +75,12 @@ build() { local ffi_include_dir="$(pkg-config --cflags-only-I libffi | sed 's|^-I||g')" cmake -Wno-dev \ - -DCMAKE_BUILD_TYPE=Release \ + -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=/$_prefix \ + \ -DFFI_INCLUDE_DIR="$ffi_include_dir" \ -DLLVM_BINUTILS_INCDIR=/usr/include \ -DLLVM_BUILD_DOCS=OFF \ |