autogen: try fixing on darwin
and cause no rebuild elsewhere. In commit 2988780 I forgot that patchelf makes no sense there.
This commit is contained in:
parent
0697ad33c0
commit
e1b93806ba
@ -62,6 +62,7 @@ stdenv.mkDerivation rec {
|
|||||||
sed -e "s|$lib/lib|/no-such-autogen-lib-path|" -i $f
|
sed -e "s|$lib/lib|/no-such-autogen-lib-path|" -i $f
|
||||||
done
|
done
|
||||||
|
|
||||||
|
'' + stdenv.lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
||||||
# remove /build/** from RPATHs
|
# remove /build/** from RPATHs
|
||||||
for f in "$bin"/bin/*; do
|
for f in "$bin"/bin/*; do
|
||||||
local nrp="$(patchelf --print-rpath "$f" | sed -E 's@(:|^)/build/[^:]*:@\1@g')"
|
local nrp="$(patchelf --print-rpath "$f" | sed -E 's@(:|^)/build/[^:]*:@\1@g')"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user