mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-07 16:03:06 +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 update
|
||||||
sudo apt-get install -y --no-install-recommends build-essential pkg-config
|
sudo apt-get install -y --no-install-recommends build-essential pkg-config
|
||||||
make update
|
make update
|
||||||
make libcodex
|
CODEX_LIB_PARAMS="-d:LeopardCmakeFlags=\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON\"" make libcodex
|
||||||
|
|
||||||
- name: Build libcodex (macOS)
|
- name: Build libcodex (macOS)
|
||||||
if: runner.os == 'macOS' && steps.cache-libcodex.outputs.cache-hit != 'true'
|
if: runner.os == 'macOS' && steps.cache-libcodex.outputs.cache-hit != 'true'
|
||||||
@ -60,7 +60,7 @@ jobs:
|
|||||||
brew update
|
brew update
|
||||||
brew install coreutils
|
brew install coreutils
|
||||||
make update
|
make update
|
||||||
make libcodex
|
CODEX_LIB_PARAMS="-d:LeopardCmakeFlags=\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON\"" make libcodex
|
||||||
|
|
||||||
- name: MSYS2 (Windows i386)
|
- name: MSYS2 (Windows i386)
|
||||||
if: matrix.os == 'windows-latest' && matrix.cpu == 'i386' && steps.cache-libcodex.outputs.cache-hit != 'true'
|
if: matrix.os == 'windows-latest' && matrix.cpu == 'i386' && steps.cache-libcodex.outputs.cache-hit != 'true'
|
||||||
@ -94,7 +94,7 @@ jobs:
|
|||||||
pacman -Sy --noconfirm make
|
pacman -Sy --noconfirm make
|
||||||
git config --global core.symlinks false
|
git config --global core.symlinks false
|
||||||
make update
|
make update
|
||||||
make libcodex
|
CODEX_LIB_PARAMS="-d:LeopardCmakeFlags=\"-DCMAKE_POSITION_INDEPENDENT_CODE=ON\"" make libcodex
|
||||||
|
|
||||||
- name: Package artifacts (Linux/macOS)
|
- name: Package artifacts (Linux/macOS)
|
||||||
if: matrix.os != 'windows-latest'
|
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 update
|
||||||
sudo apt-get install -y build-essential
|
sudo apt-get install -y build-essential
|
||||||
make update
|
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
|
- name: Build codex go
|
||||||
run: make
|
run: make
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user