fix typos for LDFLAGS 68/182668/1
authorJeonghoon Park <jh1979.park@samsung.com>
Wed, 27 Jun 2018 04:07:02 +0000 (13:07 +0900)
committerJeonghoon Park <jh1979.park@samsung.com>
Wed, 27 Jun 2018 04:07:02 +0000 (13:07 +0900)
Change-Id: I1ce5310cecbb849a819d883423a50f94e8fe2d27

lib/things-service-worker/CMakeLists.txt
lib/things-service/CMakeLists.txt

index 790fcf6..5670afb 100644 (file)
@@ -16,14 +16,15 @@ FOREACH (flag ${LIB_TTS_PKGS_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
 
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Winline -g")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Winline")
+SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${INSTALL_LIB_DIR}")
 
 FILE(GLOB LIB_TTS_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/src/*.c)
 
 ADD_LIBRARY(${LIB} SHARED ${LIB_TTS_SOURCE})
 TARGET_LINK_LIBRARIES(${LIB}
-       ${LIB_TTS_LDFLAGS}
+       ${LIB_TTS_PKGS_LDFLAGS}
        ${COMMON_LIBS}
 )
 
index 8581190..bc1a61a 100644 (file)
@@ -18,14 +18,15 @@ FOREACH (flag ${LIB_TTS_PKGS_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
 
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Winline -g")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Winline")
+SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${INSTALL_LIB_DIR}")
 
 FILE(GLOB LIB_TTS_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/src/*.c)
 
 ADD_LIBRARY(${LIB} SHARED ${LIB_TTS_SOURCE})
 TARGET_LINK_LIBRARIES(${LIB}
-       ${LIB_TTS_LDFLAGS}
+       ${LIB_TTS_PKGS_LDFLAGS}
        ${COMMON_LIBS}
 )