Skip to content

Commit

Permalink
Merge pull request #260 from graft-project/fix/fpic-flag
Browse files Browse the repository at this point in the history
build: -fPIC enabled for both static/dynamic builds
  • Loading branch information
mbg033 authored Mar 19, 2019
2 parents 744705b + 807c44d commit ed6e26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,11 @@ endif()

if (BUILD_SHARED_LIBS)
message(STATUS "Building internal libraries with position independent code")
set(PIC_FLAG "-fPIC")
add_definitions("-DBUILD_SHARED_LIBS")
else()
message(STATUS "Building internal libraries as static")
endif()
set(PIC_FLAG "-fPIC")

if(MINGW)
string(REGEX MATCH "^[^/]:/[^/]*" msys2_install_path "${CMAKE_C_COMPILER}")
Expand Down

0 comments on commit ed6e26a

Please sign in to comment.