Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Fix static executable linking in CMake 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiao-Long Chen committed Aug 28, 2016
1 parent d1b8d7d commit 59ab559
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cryptfstool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ set_target_properties(
CXX_STANDARD_REQUIRED 1
POSITION_INDEPENDENT_CODE 1
LINK_FLAGS "-static"
LINK_SEARCH_START_STATIC ON
)

target_link_libraries(
Expand Down
1 change: 1 addition & 0 deletions mbbootui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ set_target_properties(
CXX_STANDARD_REQUIRED 1
POSITION_INDEPENDENT_CODE 1
LINK_FLAGS "-static"
LINK_SEARCH_START_STATIC ON
)

target_link_libraries(
Expand Down
1 change: 1 addition & 0 deletions mbtool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ if(${MBP_BUILD_TARGET} STREQUAL android-system)
mbtool mbtool_recovery
PROPERTIES
LINK_FLAGS "-static"
LINK_SEARCH_START_STATIC ON
)
endif()

Expand Down
1 change: 1 addition & 0 deletions odinupdater/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ if(${MBP_BUILD_TARGET} STREQUAL android-system)
fuse-sparse
PROPERTIES
LINK_FLAGS "-static"
LINK_SEARCH_START_STATIC ON
)

target_link_libraries(
Expand Down

0 comments on commit 59ab559

Please sign in to comment.