From 4c6a1356a150975eacd01f022ff376f67ff5303b Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Sat, 14 Apr 2012 14:47:16 +0200 Subject: [PATCH] Compile cstdlib with -fPIC. --- src/std/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/std/CMakeLists.txt b/src/std/CMakeLists.txt index aeda51eee..c21120189 100644 --- a/src/std/CMakeLists.txt +++ b/src/std/CMakeLists.txt @@ -34,6 +34,9 @@ include_directories( ) add_library(${CSTDLIB_LIBRARY} STATIC ${cstdlib_SRCS}) +if(NOT WIN32) + add_definitions( -fPIC ) +endif() if(NOT HAVE_FNMATCH AND WIN32) # needed for PathMatchSpec for our fnmatch replacement target_link_libraries(${CSTDLIB_LIBRARY} ${SHLWAPI_LIBRARY})