Skip to content

Commit

Permalink
ci: switch to --disable-no-undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
evverx committed Dec 5, 2021
1 parent f00c9f0 commit 8ff641f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ for phase in "${PHASES[@]}"; do
export CFLAGS="$clang_flags"
export CXXFLAGS="$clang_flags"

# https://github.com/evverx/elfutils/issues/11
sed -i 's/^\(ZDEFS_LDFLAGS=\).*/\1/' configure.ac
find -name Makefile.am | xargs sed -i 's/,--no-undefined//'
additional_configure_flags="--disable-no-undefined"
fi

# There should probably be a better way to turn off unaligned access
Expand All @@ -159,7 +157,7 @@ for phase in "${PHASES[@]}"; do

$CC --version
autoreconf -i -f
if ! ./configure --enable-maintainer-mode; then
if ! ./configure --enable-maintainer-mode $additional_configure_flags; then
cat config.log
exit 1
fi
Expand Down

0 comments on commit 8ff641f

Please sign in to comment.