Skip to content

Commit

Permalink
guix: Check for IBT and SHSTK properties in .note.gnu.property section
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Aug 22, 2024
1 parent 636fba1 commit c5bed74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion contrib/guix/libexec/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ case "$HOST" in
*mingw*) HOST_LDFLAGS="-Wl,--no-insert-timestamp" ;;
esac

case "$HOST" in
x86_64-linux-gnu) HARDENED_LDFLAGS="-Wl,-z,cet-report=error" ;;
esac

# Make $HOST-specific native binaries from depends available in $PATH
export PATH="${BASEPREFIX}/${HOST}/native/bin:${PATH}"
mkdir -p "$DISTSRC"
Expand All @@ -251,7 +255,8 @@ mkdir -p "$DISTSRC"
${CONFIGFLAGS} \
${HOST_CFLAGS:+CFLAGS="${HOST_CFLAGS}"} \
${HOST_CXXFLAGS:+CXXFLAGS="${HOST_CXXFLAGS}"} \
${HOST_LDFLAGS:+LDFLAGS="${HOST_LDFLAGS}"}
${HOST_LDFLAGS:+LDFLAGS="${HOST_LDFLAGS}"} \
${HARDENED_LDFLAGS:+HARDENED_LDFLAGS="${HARDENED_LDFLAGS}"}

sed -i.old 's/-lstdc++ //g' config.status libtool

Expand Down

0 comments on commit c5bed74

Please sign in to comment.