1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

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

View File

@ -1,6 +1,6 @@
project(GLFW C) project(GLFW C)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8.9)
set(GLFW_VERSION_MAJOR "3") set(GLFW_VERSION_MAJOR "3")
set(GLFW_VERSION_MINOR "1") set(GLFW_VERSION_MINOR "1")

View File

@ -72,6 +72,8 @@ GLFW bundles a number of dependencies in the `deps/` directory.
- Added *partial and experimental* support for Wayland - Added *partial and experimental* support for Wayland
- Changed the default of `GLFW_REFRESH_RATE` to `GLFW_DONT_CARE` to maintain - Changed the default of `GLFW_REFRESH_RATE` to `GLFW_DONT_CARE` to maintain
the default behavior the default behavior
- Changed static library to build as position independent code for easier use
from the Rust language
- Bugfix: The debug context attribute was set from `GL_ARB_debug_output` even - Bugfix: The debug context attribute was set from `GL_ARB_debug_output` even
when a debug context had not been requested when a debug context had not been requested
- Bugfix: The particles example was not linked against the threading library - Bugfix: The particles example was not linked against the threading library

View File

@ -53,7 +53,8 @@ if (APPLE)
endif() endif()
add_library(glfw ${glfw_SOURCES} ${glfw_HEADERS}) 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) if (BUILD_SHARED_LIBS)
# Include version information in the output # Include version information in the output