Skip to content

Commit

Permalink
Make executable binaries static
Browse files Browse the repository at this point in the history
To avoid dependencies, make executable binaries static.

Signed-off-by: Yadong Qi <yadong.qi@intel.com>
  • Loading branch information
YadongQi authored and sysopenci committed Aug 22, 2023
1 parent 66ccb75 commit 66d9d55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ target_link_libraries(${PROJECT_NAME}
PRIVATE ${_GRPC_GRPCPP}
PRIVATE ${_PROTOBUF_LIBPROTOBUF}
-lrt
-static
)
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS_RELEASE -s)

Expand Down
1 change: 1 addition & 0 deletions src/host/app_launcher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ target_link_libraries(${APPLAUNCHER_PROJ}
PRIVATE ${_GRPC_GRPCPP}
PRIVATE ${_PROTOBUF_LIBPROTOBUF}
-lrt
-static
)
set_target_properties(${APPLAUNCHER_PROJ} PROPERTIES LINK_FLAGS_RELEASE -s)

Expand Down

0 comments on commit 66d9d55

Please sign in to comment.