diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-07-02 10:16:34 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-07-02 10:16:34 +0200 |
commit | 56dcaf83e29635dc87a320fc024c45cdec49907d (patch) | |
tree | 8e280976aa7b3a05a012af3f879f4c800ff18fe7 | |
parent | 101870cbc23e6373161958132f83a9968d4a0c53 (diff) | |
download | jsonpath-56dcaf83e29635dc87a320fc024c45cdec49907d.tar.gz |
remove --gc-sections for mac os x builds
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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) |