Merge pull request #320187 from ExpidusOS/fix/pkgsllvm/db
db4: fix configure with llvm
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ lib, stdenv, fetchurl, autoreconfHook, ... } @ args:
|
||||
{ lib, stdenv, fetchurl, autoreconfHook, targetPlatform, ... } @ args:
|
||||
|
||||
import ./generic.nix (args // {
|
||||
import ./generic.nix (builtins.removeAttrs args ["targetPlatform"] // {
|
||||
version = "4.8.30";
|
||||
sha256 = "0ampbl2f0hb1nix195kz1syrqqxpmvnvnfvphambj7xjrl3iljg0";
|
||||
extraPatches = [
|
||||
@@ -9,6 +9,8 @@ import ./generic.nix (args // {
|
||||
./darwin-mutexes-4.8.patch
|
||||
];
|
||||
|
||||
drvArgs.configureFlags = lib.optional (targetPlatform.useLLVM or false) "--with-mutex=POSIX/pthreads";
|
||||
|
||||
drvArgs.hardeningDisable = [ "format" ];
|
||||
drvArgs.doCheck = false;
|
||||
})
|
||||
|
||||
@@ -67,7 +67,8 @@ stdenv.mkDerivation (rec {
|
||||
(if compat185 then "--enable-compat185" else "--disable-compat185")
|
||||
]
|
||||
++ lib.optional dbmSupport "--enable-dbm"
|
||||
++ lib.optional stdenv.isFreeBSD "--with-pic";
|
||||
++ lib.optional stdenv.isFreeBSD "--with-pic"
|
||||
++ (drvArgs.configureFlags or []);
|
||||
|
||||
preConfigure = ''
|
||||
cd build_unix
|
||||
@@ -92,4 +93,4 @@ stdenv.mkDerivation (rec {
|
||||
license = license;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
} // drvArgs)
|
||||
} // builtins.removeAttrs drvArgs [ "configureFlags" ])
|
||||
|
||||
Reference in New Issue
Block a user