[client] only provide linker flags at link time

This commit is contained in:
Geoffrey McRae 2018-05-31 18:54:10 +10:00
parent d4c41d2d94
commit 32dca9ea3f

View File

@ -3,7 +3,8 @@ project(looking-glass-client C)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
SET(CMAKE_C_FLAGS "-std=gnu99 -g -O3 -march=native -Wall -Werror -Wfatal-errors -ffast-math -fdata-sections -ffunction-sections -Wl,--gc-sections")
SET(CMAKE_C_FLAGS "-std=gnu99 -g -O3 -march=native -Wall -Werror -Wfatal-errors -ffast-math -fdata-sections -ffunction-sections")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--gc-sections")
find_package(PkgConfig)
pkg_check_modules(PKGCONFIG REQUIRED