summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMallchad2021-10-11 20:45:34 +0100
committerMallchad2021-10-11 20:55:08 +0100
commit1786261aa32e43077b3768b410a0c8948707ef08 (patch)
tree23352846fecb323a95930ef719d355febff477f8
parente84e1f9a26d1a99da8d8950911aa785c889879a7 (diff)
downloadaur-standardese-git.tar.gz
Fix Let makepkg use reccomended stable '-O2' CXX_FLAG for optimization level
NOTE: It was noted on the packaging guidelines for CMake based packages that sometimes upstream can set specific flags only to be defined for certain build types, like release for example. So caution should be exercised by using the reccomended '-DCMAKE_BUILD_TYPE=none' option.
-rw-r--r--PKGBUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index cde373fc16b..f36fee84d09 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,6 +29,7 @@ build() {
cmake \
-DBUILD_SHARED_LIBS=OFF \
-DSTANDARDESE_BUILD_TEST=OFF \
+ -DCMAKE_BUILD_TYPE=none \
-DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
-DLIBCLANG_INCLUDE_DIR="/usr/include/" \
-DLIBCLANG_SYSTEM_INCLUDE_DIR="$(find /usr/lib/clang/ -type d -name include)" \