From 95eaf6688d024161f4f41307e5f439d52efcc87a Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 1 Sep 2021 09:24:59 +0200 Subject: [PATCH] Make the use of RPATH conditional MacOS ld doesn't support -rpath, so we must be able to not use it there. --- .github/before_script.sh | 2 +- .github/workflows/ci.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/before_script.sh b/.github/before_script.sh index 003a9a6..2164d7f 100755 --- a/.github/before_script.sh +++ b/.github/before_script.sh @@ -17,7 +17,7 @@ git describe --always --long PREFIX=$HOME/opt -${SETARCH-} ./config shared -d --prefix=$PREFIX --libdir=lib --openssldir=$PREFIX -Wl,-rpath=$PREFIX/lib +${SETARCH-} ./config shared -d --prefix=$PREFIX --libdir=lib --openssldir=$PREFIX ${USE_RPATH:+-Wl,-rpath=$PREFIX/lib} ${SETARCH-} make -s -j$(nproc) build_libs ${SETARCH-} make -s -j$(nproc) build_programs make -s install_sw diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1267957..0a7e9a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,7 @@ on: [push, pull_request] env: OPENSSL_BRANCH: openssl-3.0.0-beta2 + USE_RPATH: yes jobs: gcc-openssl-stable: @@ -23,6 +24,8 @@ jobs: macos-openssl-stable: runs-on: macos-11 + env: + USE_RPATH: steps: - uses: actions/checkout@v2 - run: .github/before_script.sh @@ -41,6 +44,7 @@ jobs: runs-on: macos-11 env: OPENSSL_BRANCH: master + USE_RPATH: steps: - uses: actions/checkout@v2 - run: .github/before_script.sh @@ -61,6 +65,7 @@ jobs: env: OPENSSL_BRANCH: master ASAN: -DASAN=1 + USE_RPATH: steps: - uses: actions/checkout@v2 - run: .github/before_script.sh -- 2.39.2