MacOS ld doesn't support -rpath, so we must be able to not use it there.
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
env:
OPENSSL_BRANCH: openssl-3.0.0-beta2
+ USE_RPATH: yes
jobs:
gcc-openssl-stable:
macos-openssl-stable:
runs-on: macos-11
+ env:
+ USE_RPATH:
steps:
- uses: actions/checkout@v2
- run: .github/before_script.sh
runs-on: macos-11
env:
OPENSSL_BRANCH: master
+ USE_RPATH:
steps:
- uses: actions/checkout@v2
- run: .github/before_script.sh
env:
OPENSSL_BRANCH: master
ASAN: -DASAN=1
+ USE_RPATH:
steps:
- uses: actions/checkout@v2
- run: .github/before_script.sh