Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[contrib] Stop building ICU tools to fix gcc Envoy build
Clang and gcc are subtly different and it seems to be the cause of contrib build failures reported in envoyproxy#31807 (e.g., when using gcc to link the final binary it results in a bunch of essential for gcc C++ symbols like __gxx_personality_v0). The issue appear to be the order of the libraries when linking. gcc, when building statically linked binaries basically needs libstdc++ to be the last library or alsmot the last library in the command line. And clang does not appear to care about it much. This change provides libstdc++ library in LIBS environment variabe which will put it in the right position when building the ICU library. This works well for both clang and gcc. Signed-off-by: Mikhail Krinkin <[email protected]>
- Loading branch information