glibc/hurd: Add libhurduser and libmachuser to the libc.so linker script.
svn path=/nixpkgs/trunk/; revision=21901
This commit is contained in:
parent
e5571e9cd4
commit
ee7ad85926
@ -34,6 +34,15 @@ postInstall() {
|
|||||||
ln -sv $(ls -d $kernelHeaders/include/* | grep -v 'scsi$') .)
|
ln -sv $(ls -d $kernelHeaders/include/* | grep -v 'scsi$') .)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -f "$out/lib/libhurduser.so"; then
|
||||||
|
# libc.so, libhurduser.so, and libmachuser.so depend on each
|
||||||
|
# other, so add them to libc.so (a RUNPATH on libc.so.0.3
|
||||||
|
# would be ignored by the cross-linker.)
|
||||||
|
echo "adding \`libhurduser.so' and \`libmachuser.so' to the \`libc.so' linker script..."
|
||||||
|
sed -i "$out/lib/libc.so" \
|
||||||
|
-e"s|\(libc\.so\.[^ ]\+\>\)|\1 $out/lib/libhurduser.so $out/lib/libmachuser.so|g"
|
||||||
|
fi
|
||||||
|
|
||||||
# Fix for NIXOS-54 (ldd not working on x86_64). Make a symlink
|
# Fix for NIXOS-54 (ldd not working on x86_64). Make a symlink
|
||||||
# "lib64" to "lib".
|
# "lib64" to "lib".
|
||||||
if test -n "$is64bit"; then
|
if test -n "$is64bit"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user