only use -g3 with -DDEBUG
authorFelix Fietkau <nbd@openwrt.org>
Sun, 11 Sep 2011 20:38:33 +0000 (22:38 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 11 Sep 2011 20:38:33 +0000 (22:38 +0200)
CMakeLists.txt

index b264b1ec94e8b0189e9a6505265a93f1abdad7c3..6da39df2baf88402ebb7bc0d089f6f7dcda1e48e 100644 (file)
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 2.6)
 
 PROJECT(netifd C)
-ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3)
+ADD_DEFINITIONS(-Os -Wall -Werror)
 
 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
 
@@ -11,7 +11,7 @@ IF(APPLE)
 ENDIF()
 
 IF(DEBUG)
-  ADD_DEFINITIONS(-DDEBUG -O0)
+  ADD_DEFINITIONS(-DDEBUG -O0 --std=gnu99 -g3)
 ENDIF()