Skip to content

Commit 2c3273d

Browse files
committed
Set RUNPATH on libstunnel.so
Set libstdc++ and libgcc to be static, so they are stripped away. This matches what the python package does. Change-Id: Ia19fa791a7c1bef4b9a10bb216ff6516cc38d97e
1 parent 8e558e3 commit 2c3273d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

omd/packages/stunnel/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pkg_files(
2828
set_runpath(
2929
name = "lib_runpath",
3030
srcs = ["@stunnel//:libstunnel.so"],
31+
rpaths = ["${ORIGIN}/../../lib"],
3132
)
3233

3334
pkg_files(

omd/packages/stunnel/BUILD.stunnel.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ configure_make(
1414
configure_options = [
1515
"--with-ssl=$$EXT_BUILD_DEPS/openssl",
1616
"--with-bashcompdir=$$INSTALLDIR/share",
17+
"LDFLAGS='-static-libstdc++ -static-libgcc'",
1718
],
1819
env = {
1920
"PKG_CONFIG_PATH": ":".join([

0 commit comments

Comments
 (0)