Skip to content

Commit ff60110

Browse files
committed
fix: conditional for using this linking only with macos
1 parent 5845593 commit ff60110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix/cargo-pgrx/buildPgrxExtension.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ let
146146
147147
export PGRX_BUILD_FLAGS="--frozen -j $NIX_BUILD_CORES ${builtins.concatStringsSep " " cargoBuildFlags}"
148148
export PGX_BUILD_FLAGS="$PGRX_BUILD_FLAGS"
149-
${lib.optionalString true ''RUSTFLAGS="''${RUSTFLAGS:+''${RUSTFLAGS} }-Clink-args=-Wl,-undefined,dynamic_lookup"''} \
149+
${lib.optionalString stdenv.hostPlatform.isDarwin ''RUSTFLAGS="''${RUSTFLAGS:+''${RUSTFLAGS} }-Clink-args=-Wl,-undefined,dynamic_lookup"''} \
150150
cargo ${pgrxBinaryName} package \
151151
--pg-config ${lib.getDev postgresql}/bin/pg_config \
152152
${maybeDebugFlag} \

0 commit comments

Comments
 (0)