Skip to content

Commit bd53cfc

Browse files
committed
static link c++ runtime into hook binaries
1 parent 7455690 commit bd53cfc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/z-test-pipeline.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
-DBoost_USE_STATIC_LIBS=ON \
4848
-DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF \
4949
-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON \
50+
-DCMAKE_EXE_LINKER_FLAGS="-static-libstdc++ -static-libgcc" \
5051
-DBUILD_DROPBEAR=0 \
5152
-DENABLE_UNIT_TESTS=0 \
5253
-DBUILD_SHARED_LIBS=OFF \
@@ -56,6 +57,12 @@ jobs:
5657
'
5758
working-directory: ${{ env.TMP_DIR }}/sarus-hooks
5859

60+
- name: Verify hook runtime dependencies
61+
run: |
62+
set -euo pipefail
63+
echo "ldd for ldcache_hook:"
64+
ldd "$TMP_DIR/podman-hooks/bin/ldcache_hook" | tee "$TMP_DIR/ldd_ldcache_hook.txt"
65+
5966
- name: Install Bats locally
6067
run: |
6168
git clone --depth 1 https://github.com/bats-core/bats-core.git "$TMP_DIR/bats-core"

0 commit comments

Comments
 (0)