Made static library build with -fPIC for Rust.

Fixes #199.
This commit is contained in:
Camilla Berglund
2014-10-07 12:48:01 +02:00
parent 96d230becb
commit 2a255e49e2
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ if (APPLE)
endif()
add_library(glfw ${glfw_SOURCES} ${glfw_HEADERS})
set_target_properties(glfw PROPERTIES OUTPUT_NAME "${GLFW_LIB_NAME}")
set_target_properties(glfw PROPERTIES OUTPUT_NAME "${GLFW_LIB_NAME}"
POSITION_INDEPENDENT_CODE ON)
if (BUILD_SHARED_LIBS)
# Include version information in the output