diff options
Diffstat (limited to 'main/llvm5')
-rw-r--r-- | main/llvm5/APKBUILD | 6 |
1 files changed, 5 insertions, 1 deletions
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 \ |