mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-02 13:33:10 +00:00
Add DCMAKE_POSITION_INDEPENDENT_CODE flag
This commit is contained in:
parent
d28971e4cf
commit
c604e441c1
6
.github/workflows/artifacts.yml
vendored
6
.github/workflows/artifacts.yml
vendored
@ -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'
|
||||
|
||||
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user