Change-Id: I1ce5310cecbb849a819d883423a50f94e8fe2d27
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}
)
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}
)