diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt
index be57661..e1e37a7 100644
--- a/src/util/CMakeLists.txt
+++ b/src/util/CMakeLists.txt
@@ -21,6 +21,10 @@ target_link_libraries(util PUBLIC OSAPI)
target_include_directories(util PUBLIC "$" "$"
"$" "$")
+if(${CMAKE_C_COMPILER_ID} STREQUAL "SunPro")
+ add_definitions(-KPIC)
+endif()
+
# TODO: improve test inclusion.
if((BUILD_TESTING) AND ((NOT DEFINED MSVC_VERSION) OR (MSVC_VERSION GREATER "1800")))
add_subdirectory(tests)