summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stamp <jstamp@users.sourceforge.net>2010-07-28 15:37:15 -0700
committerLloyd Hilaiel <lloyd@hilaiel.com>2010-08-10 11:53:28 -0600
commit545810635ac93459d2ae236e0134a18a5d1e4ed2 (patch)
treed761e0907390b37aa27293faa01d0c637b3d54bb
parent63bcb31257eba7ccbd01477baeae940c3f9578ad (diff)
downloadyajl-545810635ac93459d2ae236e0134a18a5d1e4ed2.tar.gz
Don't use -fPIC for static lib. Cmake will automatically add it for the shared.
Signed-off-by: Lloyd Hilaiel <lloyd@hilaiel.com>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d244280..cc6bfbd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,7 +63,7 @@ IF (WIN32)
SET(CMAKE_C_FLAGS_RELEASE "/D NDEBUG /O2")
ELSE (WIN32)
SET(CMAKE_C_FLAGS
- "${CMAKE_C_FLAGS} -fPIC -std=c99 -pedantic -Wpointer-arith -Wno-format-y2k -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -Wextra -Wundef -Wwrite-strings -Wold-style-definition -Wredundant-decls -Wno-unused-parameter -Wno-sign-compare -Wmissing-prototypes")
+ "${CMAKE_C_FLAGS} -std=c99 -pedantic -Wpointer-arith -Wno-format-y2k -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -Wextra -Wundef -Wwrite-strings -Wold-style-definition -Wredundant-decls -Wno-unused-parameter -Wno-sign-compare -Wmissing-prototypes")
SET(CMAKE_C_FLAGS_DEBUG "-DDEBUG -g")
SET(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -O2 -Wuninitialized")