mirror of
https://github.com/glfw/glfw.git
synced 2025-10-02 21:00:57 +00:00
Support position independent code, specifically 64-bit compiling with shared library
This commit is contained in:
parent
20b7ac0518
commit
0084d1c567
@ -96,7 +96,7 @@ endif()
|
||||
# Set compiler specific flags
|
||||
#--------------------------------------------------------------------
|
||||
if (UNIX)
|
||||
add_definitions(-Wall)
|
||||
add_definitions(-Wall -fPIC)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_definitions(-fvisibility=hidden)
|
||||
|
Loading…
Reference in New Issue
Block a user