summaryrefslogtreecommitdiffstats
path: root/kde/cmake/kservice
diff options
context:
space:
mode:
Diffstat (limited to 'kde/cmake/kservice')
-rw-r--r--kde/cmake/kservice9
1 files changed, 7 insertions, 2 deletions
diff --git a/kde/cmake/kservice b/kde/cmake/kservice
index b33652b..86b95bb 100644
--- a/kde/cmake/kservice
+++ b/kde/cmake/kservice
@@ -1,10 +1,15 @@
+#
+# Need to append "-std=c99" to the # CMAKE_C_FLAGS, because of a bug in
+# flex-2.6.0 which generates a C code # with C++-style comments.
+# The bug has been fixed in flex 2.6.1 which is not part of Slackware.
+#
mkdir build
cd build
cmake \
$KDE_OPT_ARGS \
-DKDE_PLATFORM_FEATURE_DISABLE_DEPRECATED=TRUE \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -std=c99" \
+ -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS -std=c99" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
-DCMAKE_BUILD_TYPE=Release \