mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 09:44:18 +00:00
Merge pull request #329584 from ExpidusOS/fix/pkgsllvm/xorg/libx11
xorg.libX11: fix compiling with llvm
This commit is contained in:
commit
4f6603762b
@ -6,6 +6,6 @@ for p in "${params[@]}"; do
|
||||
esac
|
||||
done
|
||||
|
||||
if $needsTarget; then
|
||||
if $needsTarget && [[ $0 != *cpp ]]; then
|
||||
extraBefore+=(-target @defaultTarget@ @machineFlags@)
|
||||
fi
|
||||
|
@ -147,7 +147,8 @@ self: super:
|
||||
libX11 = super.libX11.overrideAttrs (attrs: {
|
||||
outputs = [ "out" "dev" "man" ];
|
||||
configureFlags = attrs.configureFlags or []
|
||||
++ malloc0ReturnsNullCrossFlag;
|
||||
++ malloc0ReturnsNullCrossFlag
|
||||
++ lib.optional (stdenv.targetPlatform.useLLVM or false) "ac_cv_path_RAWCPP=cpp";
|
||||
depsBuildBuild = [
|
||||
buildPackages.stdenv.cc
|
||||
] ++ lib.optionals stdenv.hostPlatform.isStatic [
|
||||
|
Loading…
Reference in New Issue
Block a user