Skip to content

Commit

Permalink
dev-libs/libgcrypt: filter-flags
Browse files Browse the repository at this point in the history
The codebase had had various UB in the past IIRC, it's sensitive to
optimisation, and it already forces some components to be built with -O0.

Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Jul 7, 2024
1 parent 903d5ec commit da3ec61
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dev-libs/libgcrypt/libgcrypt-1.10.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ src_prepare() {
eautoreconf
}

src_configure() {
# Sensitive to optimisation; parts of the codebase are built with
# -O0 already. Don't risk it with UB.
strip-flags

multilib-minimal_src_configure
}

multilib_src_configure() {
if [[ ${CHOST} == *86*-solaris* ]] ; then
# ASM code uses GNU ELF syntax, divide in particular, we need to
Expand Down
8 changes: 8 additions & 0 deletions dev-libs/libgcrypt/libgcrypt-1.10.3-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ src_prepare() {
eautoreconf
}

src_configure() {
# Sensitive to optimisation; parts of the codebase are built with
# -O0 already. Don't risk it with UB.
strip-flags

multilib-minimal_src_configure
}

multilib_src_configure() {
if [[ ${CHOST} == *86*-solaris* ]] ; then
# ASM code uses GNU ELF syntax, divide in particular, we need to
Expand Down
8 changes: 8 additions & 0 deletions dev-libs/libgcrypt/libgcrypt-1.10.3-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ src_prepare() {
eautoreconf
}

src_configure() {
# Sensitive to optimisation; parts of the codebase are built with
# -O0 already. Don't risk it with UB.
strip-flags

multilib-minimal_src_configure
}

multilib_src_configure() {
if [[ ${CHOST} == *86*-solaris* ]] ; then
# ASM code uses GNU ELF syntax, divide in particular, we need to
Expand Down
8 changes: 8 additions & 0 deletions dev-libs/libgcrypt/libgcrypt-1.11.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ src_prepare() {
eautoreconf
}

src_configure() {
# Sensitive to optimisation; parts of the codebase are built with
# -O0 already. Don't risk it with UB.
strip-flags

multilib-minimal_src_configure
}

multilib_src_configure() {
if [[ ${CHOST} == *86*-solaris* ]] ; then
# ASM code uses GNU ELF syntax, divide in particular, we need to
Expand Down

0 comments on commit da3ec61

Please sign in to comment.