Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update transport-native-epoll compile flags
- Move libraries to LIBS where they should be, avoiding need for -Wl,--no-as-needed. - Use -O2 instead of -O3; there are no tight loops so -O3 just increases code size for no benefit. - Add -pipe for faster compilation. - Add -D_FORTIFY_SOURCE=2 and -Wl,-z,relro for security. - Add -Wl,-z,now for security and to improve musl compatibility. musl does not implement __strdup and __strndup which old glibc aliases strdup and strndup to, but OpenJDK loads libraries with RTLD_LAZY, so this is not discovered until too late. See grpc/grpc-java#8751 (comment) for more information.
- Loading branch information