From: Felix Fietkau Date: Sat, 2 Jul 2016 08:16:34 +0000 (+0200) Subject: remove --gc-sections for mac os x builds X-Git-Url: http://git.openwrt.org/?p=project%2Fjsonpath.git;a=commitdiff_plain;h=56dcaf83e29635dc87a320fc024c45cdec49907d remove --gc-sections for mac os x builds Signed-off-by: Felix Fietkau --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0301db5..f2ff51e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,9 @@ cmake_minimum_required(VERSION 2.6) PROJECT(jsonpath C) ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-error=unused-variable -ffunction-sections -D_GNU_SOURCE) -SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-Wl,--gc-sections") +IF(NOT APPLE) + SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-Wl,--gc-sections") +ENDIF() IF(APPLE) INCLUDE_DIRECTORIES(/opt/local/include)