Skip to content

Commit 03a9800

Browse files
authored
Merge branch 'develop' into pg17_7
2 parents 33c70a7 + 7c2878c commit 03a9800

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

nix/ext/plv8/default.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
patchelf,
1515
buildEnv,
1616
nodejs_20,
17+
libcxx,
1718
}:
1819

1920
let
@@ -139,26 +140,26 @@ let
139140
${lib.optionalString stdenv.isDarwin ''
140141
install_name_tool -add_rpath "${v8}/lib" $out/lib/$LIB_NAME
141142
install_name_tool -add_rpath "${postgresql}/lib" $out/lib/$LIB_NAME
142-
install_name_tool -add_rpath "${stdenv.cc.cc.lib}/lib" $out/lib/$LIB_NAME
143+
install_name_tool -add_rpath "${libcxx}/lib" $out/lib/$LIB_NAME
143144
install_name_tool -change @rpath/libv8_monolith.dylib ${v8}/lib/libv8_monolith.dylib $out/lib/$LIB_NAME
144145
''}
145146
146147
${
147148
lib.optionalString (!stdenv.isDarwin) ''
148-
${patchelf}/bin/patchelf --set-rpath "${v8}/lib:${postgresql}/lib:${stdenv.cc.cc.lib}/lib" $out/lib/$LIB_NAME
149+
${patchelf}/bin/patchelf --set-rpath "${v8}/lib:${postgresql}/lib:${libcxx}/lib" $out/lib/$LIB_NAME
149150
''
150151
}
151152
else
152153
${lib.optionalString stdenv.isDarwin ''
153154
install_name_tool -add_rpath "${v8}/lib" $out/lib/$LIB_NAME
154155
install_name_tool -add_rpath "${postgresql}/lib" $out/lib/$LIB_NAME
155-
install_name_tool -add_rpath "${stdenv.cc.cc.lib}/lib" $out/lib/$LIB_NAME
156+
install_name_tool -add_rpath "${libcxx}/lib" $out/lib/$LIB_NAME
156157
install_name_tool -change @rpath/libv8_monolith.dylib ${v8}/lib/libv8_monolith.dylib $out/lib/$LIB_NAME
157158
''}
158159
159160
${
160161
lib.optionalString (!stdenv.isDarwin) ''
161-
${patchelf}/bin/patchelf --set-rpath "${v8}/lib:${postgresql}/lib:${stdenv.cc.cc.lib}/lib" $out/lib/$LIB_NAME
162+
${patchelf}/bin/patchelf --set-rpath "${v8}/lib:${postgresql}/lib:${libcxx}/lib" $out/lib/$LIB_NAME
162163
''
163164
}
164165
fi

0 commit comments

Comments
 (0)