summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorIsmael Luceno2014-09-25 23:36:52 -0300
committerIsmael Luceno2014-09-25 23:38:52 -0300
commita7c65807d897e99802049430c51810033f75231c (patch)
tree29b5fd96fa1b5a50ec654a289d1f44551dca9ccc /FUNCTIONS
parentd39b3474611bd74b4fc3620dbee6fa23d9df3a85 (diff)
FUNCTIONS: cmake_build: Pass down CFLAGS and CXXFLAGS
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS2
1 files changed, 2 insertions, 0 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 28fd65092c..55bef4fbda 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -545,6 +545,8 @@ cmake_build() {
-DCMAKE_PREFIX_PATH=share/apps/cmake/modules \
-DSYSCONFDIR="$INSTALL_ROOT"/etc \
-DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \
+ -DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
$OPTS ../ &&
make
}