1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-12 19:05:08 +02:00

tests: Run `download-using-manifests' via libtool so that dlopening works.

This commit is contained in:
Ludovic Courtès 2012-01-11 16:58:49 +00:00
parent c5d9ccd810
commit 6245f0d529
3 changed files with 8 additions and 1 deletions

View file

@ -47,7 +47,9 @@ EOF
cat > $NIX_BIN_DIR/nix/substituters/download-using-manifests.pl <<EOF
#! $SHELL -e
export DYLD_LIBRARY_PATH=
exec $TOP/scripts/download-using-manifests.pl "\$@"
exec "$top_builddir/libtool" --mode=execute \
-dlopen "$top_builddir/perl/libNixStore.la" \
"$top_builddir/scripts/download-using-manifests.pl" "\$@"
EOF
chmod +x $NIX_BIN_DIR/nix/substituters/download-using-manifests.pl