From c604e441c1c3248bb2c9be76e90890c4357045c6 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 10 Oct 2025 13:16:02 +0200 Subject: [PATCH] Add DCMAKE_POSITION_INDEPENDENT_CODE flag --- .github/workflows/artifacts.yml | 6 +++--- .github/workflows/ci.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index ea5d7e5..962cbd3 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -52,7 +52,7 @@ jobs: sudo apt-get update sudo apt-get install -y --no-install-recommends build-essential pkg-config make update - make libcodex + CODEX_LIB_PARAMS="-d:LeopardCmakeFlags=\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON\"" make libcodex - name: Build libcodex (macOS) if: runner.os == 'macOS' && steps.cache-libcodex.outputs.cache-hit != 'true' @@ -60,7 +60,7 @@ jobs: brew update brew install coreutils make update - make libcodex + CODEX_LIB_PARAMS="-d:LeopardCmakeFlags=\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON\"" make libcodex - name: MSYS2 (Windows i386) if: matrix.os == 'windows-latest' && matrix.cpu == 'i386' && steps.cache-libcodex.outputs.cache-hit != 'true' @@ -94,7 +94,7 @@ jobs: pacman -Sy --noconfirm make git config --global core.symlinks false make update - make libcodex + CODEX_LIB_PARAMS="-d:LeopardCmakeFlags=\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON\"" make libcodex - name: Package artifacts (Linux/macOS) if: matrix.os != 'windows-latest' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 600120c..716c508 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,7 @@ jobs: sudo apt-get update sudo apt-get install -y build-essential make update - CODEX_LIB_PARAMS="-d:codex_enable_api_debug_peers=true" make libcodex + CODEX_LIB_PARAMS="-d:codex_enable_api_debug_peers=true -d:LeopardCmakeFlags=\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON\"" make libcodex - name: Build codex go run: make