SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-K PIC") # include the gcc flags INCLUDE(${CMAKE_ROOT}/Modules/Platform/gcc.cmake)