2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2005-08-28 01:05:50 +02:00
|
|
|
|
2006-10-18 13:25:10 +02:00
|
|
|
makeFlags="prefix=$out"
|
|
|
|
installFlags="prefix=$out"
|
2005-08-28 01:05:50 +02:00
|
|
|
|
2006-10-18 13:25:10 +02:00
|
|
|
postInstall=postInstall
|
|
|
|
postInstall() {
|
|
|
|
(cd $out && ln -s lib-* lib)
|
|
|
|
(cd $out/lib && ln -s start.o crt1.o)
|
2006-10-18 14:45:46 +02:00
|
|
|
|
|
|
|
# Fake crti.o and crtn.o.
|
|
|
|
touch empty.c
|
|
|
|
gcc -c empty.c -o $out/lib/crti.o
|
|
|
|
gcc -c empty.c -o $out/lib/crtn.o
|
2006-10-19 12:54:40 +02:00
|
|
|
|
|
|
|
# Copy <sys/user.h> from Glibc; binutils wants it.
|
|
|
|
cp $glibc/include/sys/user.h $out/include/sys/
|
2006-10-20 00:30:20 +02:00
|
|
|
|
|
|
|
# This header is bogus: it contains declarations that aren't
|
|
|
|
# defined anywhere.
|
|
|
|
rm $out/include/wchar.h
|
2006-10-18 13:25:10 +02:00
|
|
|
}
|
2005-08-28 01:05:50 +02:00
|
|
|
|
|
|
|
genericBuild
|