Skip to content

Commit

Permalink
[elfutils] pass -Wno-error properly
Browse files Browse the repository at this point in the history
It fixes a bug where -Wno-error was passed along with CXX, which in turn
led to `-Wno-error $CXX` being run instead of just `$CXX`.

elfutils still fails to compile but it's being discussed in
https://sourceware.org/bugzilla/show_bug.cgi?id=32155.
  • Loading branch information
evverx committed Sep 9, 2024
1 parent 6ec6296 commit cb38a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/elfutils/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fi
autoreconf -i -f
if ! ./configure --enable-maintainer-mode --disable-debuginfod --disable-libdebuginfod \
--disable-demangler --without-bzlib --without-lzma --without-zstd \
CC="$CC" CFLAGS="-Wno-error $CFLAGS" CXX="-Wno-error $CXX" CXXFLAGS="$CXXFLAGS" LDFLAGS="$CFLAGS"; then
CC="$CC" CFLAGS="-Wno-error $CFLAGS" CXX="$CXX" CXXFLAGS="-Wno-error $CXXFLAGS" LDFLAGS="$CFLAGS"; then
cat config.log
exit 1
fi
Expand Down

0 comments on commit cb38a20

Please sign in to comment.