mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
osrm-backend: fix build on x86_64-darwin
This commit is contained in:
parent
dcd91dea48
commit
fee5c26d7c
@ -53,13 +53,27 @@ stdenv.mkDerivation rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = toString [
|
env.NIX_CFLAGS_COMPILE = toString (
|
||||||
|
[
|
||||||
# Needed with GCC 12
|
# Needed with GCC 12
|
||||||
"-Wno-error=stringop-overflow"
|
"-Wno-error=stringop-overflow"
|
||||||
"-Wno-error=uninitialized"
|
"-Wno-error=uninitialized"
|
||||||
# Needed for GCC 13
|
# Needed for GCC 13
|
||||||
"-Wno-error=array-bounds"
|
"-Wno-error=array-bounds"
|
||||||
];
|
]
|
||||||
|
++
|
||||||
|
# error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.13 or newer
|
||||||
|
(lib.optionals
|
||||||
|
(
|
||||||
|
stdenv.hostPlatform.isDarwin
|
||||||
|
&& stdenv.hostPlatform.isx86_64
|
||||||
|
&& lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13"
|
||||||
|
)
|
||||||
|
[
|
||||||
|
"-faligned-allocation"
|
||||||
|
]
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/osrm-backend
|
mkdir -p $out/share/osrm-backend
|
||||||
|
Loading…
Reference in New Issue
Block a user