Skip to content

Commit

Permalink
drop glibc from runtime dependencies
Browse files Browse the repository at this point in the history
#7696
The binary size grows from 5.8MB to 7.2MB, but this way it works on Ubuntu 18.04 and amazonlinux.
  • Loading branch information
faucct authored Apr 12, 2023
1 parent 3fda20d commit 4f4f183
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 @@ -483,7 +483,7 @@ if(FLATBUFFERS_BUILD_FLATC)
add_pch_to_target(flatc include/flatbuffers/pch/flatc_pch.h)
endif()

target_link_libraries(flatc PRIVATE $<BUILD_INTERFACE:ProjectConfig>)
target_link_libraries(flatc PRIVATE $<BUILD_INTERFACE:ProjectConfig> -static-libgcc -static-libstdc++)
target_compile_options(flatc
PRIVATE
$<$<AND:$<BOOL:${MSVC_LIKE}>,$<CONFIG:Release>>:
Expand Down

0 comments on commit 4f4f183

Please sign in to comment.