Merge pull request #9868 from filecoin-project/id/fix-snapcraft

_build_ Set noexecstack on snapcraft builds
This commit is contained in:
Geoff Stuart 2022-12-15 15:30:30 -05:00 committed by GitHub
commit 1dcae9aafd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ parts:
- libhwloc15
- ocl-icd-libopencl1
override-build: |
LDFLAGS="" make lotus lotus-miner lotus-worker
LDFLAGS="-z noexecstack" make lotus lotus-miner lotus-worker
cp lotus lotus-miner lotus-worker $SNAPCRAFT_PART_INSTALL
cp scripts/snap-lotus-entrypoint.sh $SNAPCRAFT_PART_INSTALL