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 21, 2024
1 parent c1c18a8 commit 89f8e8e
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 89f8e8e

Please sign in to comment.