Fix make target arguments
This commit is contained in:
@@ -52,7 +52,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
env.NIX_CFLAGS_COMPILE = lib.concatStringsSep " " featureFlags;
|
||||
env.NIX_CFLAGS_LINK = lib.optionalString features.ENABLE_FTS5 "-lm";
|
||||
|
||||
makeTarget = "sqlite3.c";
|
||||
makeFlags = [ "sqlite3.c" "sqlite3.h" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
+6
-2
@@ -58,8 +58,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"--with-icu-config=${lib.getExe' icu.dev "icu-config"}"
|
||||
];
|
||||
|
||||
makeTarget = "sqlite3";
|
||||
makeFlags = (coreInitExt.passthru.makeFlags or [ ]) ++ map (opt: "OPTIONS+=${lib.escapeShellArg opt}") featureFlags;
|
||||
makeFlags =
|
||||
(coreInitExt.passthru.makeFlags or [ ])
|
||||
++ map (opt: "OPTIONS+=${lib.escapeShellArg opt}") featureFlags
|
||||
++ [
|
||||
"sqlite3"
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_LINK = lib.optionalString features.ENABLE_FTS5 "-lm";
|
||||
env.NIX_LDFLAGS = lib.concatStringsSep " " (coreInitExt.passthru.extraLDFLAGS or [ ]);
|
||||
|
||||
+6
-2
@@ -61,8 +61,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"--with-icu-config=${lib.getExe' icu.dev "icu-config"}"
|
||||
];
|
||||
|
||||
makeTarget = if static then "lib" else "so";
|
||||
makeFlags = (coreInitExt.passthru.makeFlags or [ ]) ++ map (opt: "OPTIONS+=${lib.escapeShellArg opt}") featureFlags;
|
||||
makeFlags =
|
||||
(coreInitExt.passthru.makeFlags or [ ])
|
||||
++ map (opt: "OPTIONS+=${lib.escapeShellArg opt}") featureFlags
|
||||
++ [
|
||||
(if static then "lib" else "so")
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_LINK = lib.optionalString features.ENABLE_FTS5 "-lm";
|
||||
env.NIX_LDFLAGS = lib.concatStringsSep " " (coreInitExt.passthru.extraLDFLAGS or [ ]);
|
||||
|
||||
Reference in New Issue
Block a user