Merge pull request #291426 from trofi/qlcplus-gcc-13-fix
qlcplus: fix `gcc-13` build (drop `-Werror`)
This commit is contained in:
commit
1f9bcee228
1 changed files with 6 additions and 2 deletions
|
@ -29,16 +29,20 @@ mkDerivation rec {
|
|||
|
||||
qmakeFlags = [ "INSTALLROOT=$(out)" ];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
sed -i -e '/unix:!macx:INSTALLROOT += \/usr/d' \
|
||||
-e "s@\$\$LIBSDIR/qt4/plugins@''${qtPluginPrefix}@" \
|
||||
-e "s@/etc/udev/rules.d@''${out}/lib/udev/rules.d@" \
|
||||
variables.pri
|
||||
|
||||
# Fix gcc-13 build failure by removing blanket -Werror.
|
||||
fgrep Werror variables.pri
|
||||
substituteInPlace variables.pri --replace-fail "QMAKE_CXXFLAGS += -Werror" ""
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
ln -sf $out/lib/*/libqlcplus* $out/lib
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue