Skip to content

Commit

Permalink
abseil-cpp: Workaround FTBFS by adding -fdelete-null-pointer-checks
Browse files Browse the repository at this point in the history
Fixes: wolfi-dev#34075

Signed-off-by: dann frazier <[email protected]>
  • Loading branch information
dannf committed Jan 4, 2025
1 parent 3917849 commit 3caf110
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions abseil-cpp.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: abseil-cpp
version: "20240722.0"
epoch: 0
version: "20240722.0" # On update, please check if -fdelete-null-pointer-checks is still required
epoch: 1
description: Abseil Common Libraries (C++)
copyright:
- license: Apache-2.0
Expand All @@ -17,6 +17,9 @@ environment:
- cmake
- gtest-dev
- samurai
environment:
# https://github.com/wolfi-dev/os/issues/34075
CMAKE_CXX_FLAGS: -fdelete-null-pointer-checks

pipeline:
- uses: git-checkout
Expand All @@ -27,6 +30,7 @@ pipeline:

- runs: |
cmake -B build -G Ninja \
-DCMAKE_CXX_FLAGS=$CMAKE_CXX_FLAGS \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
Expand Down

0 comments on commit 3caf110

Please sign in to comment.