aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrdb <[email protected]>2016-12-20 22:34:00 +0100
committerGitHub <[email protected]>2016-12-20 22:34:00 +0100
commitf0c2c23ad1e2427ff060db1bae0294703f742a68 (patch)
tree3f92e882f6a0720fb6cde4ebd040e566a90eab45
parent10473285bae659a3ae863df177564ef208d84b1d (diff)
Explicitly disable use of GNU89 inline semantics
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7a02a48f..34e55377 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -167,6 +167,8 @@ ENDIF()
# Make sure we have C99-style inline semantics with GCC (4.3 or newer).
IF(CMAKE_COMPILER_IS_GNUCC)
+ SET(CMAKE_C_FLAGS "-fno-gnu89-inline ${CMAKE_C_FLAGS}")
+
SET(OLD_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
# Force no inlining for the next test.
SET(CMAKE_REQUIRED_FLAGS "${OLD_REQUIRED_FLAGS} -fno-inline")