Compile osdutil with -fPIC for correct linking in Presto.

This commit is contained in:
gelder 2014-04-18 16:19:09 -07:00
parent 052a2197b6
commit feb74f51f0

View File

@ -68,6 +68,20 @@ target_link_libraries(
set(DOXY_HEADER_FILES ${PUBLIC_HEADER_FILES})
#-------------------------------------------------------------------------------
# platform dependent tweaks
if(APPLE OR UNIX)
set(PLATFORM_COMPILE_FLAGS
-fPIC
)
elseif(WIN32)
endif()
add_definitions(
${PLATFORM_COMPILE_FLAGS}
)
#-------------------------------------------------------------------------------
# OpenCL code & dependencies