Merge pull request #330289 from ExpidusOS/fix/pkgsllvm/xorg/libxt

xorg.libXt: fix cpp usage under llvm
This commit is contained in:
Tristan Ross 2024-08-03 23:00:30 -07:00 committed by GitHub
commit 985dbac93e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -255,7 +255,8 @@ self: super:
sed 's,^as_dummy.*,as_dummy="\$PATH",' -i configure
'';
configureFlags = attrs.configureFlags or []
++ malloc0ReturnsNullCrossFlag;
++ malloc0ReturnsNullCrossFlag
++ lib.optional (stdenv.targetPlatform.useLLVM or false) "ac_cv_path_RAWCPP=cpp";
propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ xorg.libSM ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
CPP = if stdenv.isDarwin then "clang -E -" else "${stdenv.cc.targetPrefix}cc -E -";