projects
/
hdw-linux
/
hdw-linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
toolchain modoifications
[hdw-linux/hdw-linux.git]
/
packages
/
toolchain
/
binutils
/
binutils
diff --git
a/packages/toolchain/binutils/binutils
b/packages/toolchain/binutils/binutils
index
fce7aa1
..
0fa39e2
100644
(file)
--- a/
packages/toolchain/binutils/binutils
+++ b/
packages/toolchain/binutils/binutils
@@
-14,18
+14,19
@@
fi
if [ "$priority" = "4" ] ; then
custmain=1
custmain() {
if [ "$priority" = "4" ] ; then
custmain=1
custmain() {
- # install the ld linking against
new
libc
- mv -v $
bindir
/{ld,ld-old}
+ # install the ld linking against
toolchain
libc
+ mv -v $
prefix/bin
/{ld,ld-old}
mv -v $prefix/`gcc -dumpmachine`/bin/{ld,ld-old}
mv -v $prefix/`gcc -dumpmachine`/bin/{ld,ld-old}
- mv -v $
bindir
/{ld-new,ld}
- ln -sfv $
bindir
/ld $prefix/`gcc -dumpmachine`/bin/ld
+ mv -v $
prefix/bin
/{ld-new,ld}
+ ln -sfv $
prefix/bin
/ld $prefix/`gcc -dumpmachine`/bin/ld
# show new linker to gcc
# show new linker to gcc
- SPECFILE="`gcc --print-file specs`" &&
+ SPECFILE="`gcc -print-libgcc-file-name`"
+ SPECFILE="`dirname $SPECFILE`/specs"
+ gcc -dumpspecs |
sed -e "s@/lib/ld.so.1@$prefix/lib/ld.so.1@g" \
sed -e "s@/lib/ld.so.1@$prefix/lib/ld.so.1@g" \
- -e "s@/lib/ld-linux.so.2@$prefix/lib/ld-linux.so.2@g" \
- $SPECFILE > tempspecfile
- mv tempspecfile $SPECFILE
+ -e "s@/lib/ld-linux.so.2@$prefix/lib/ld-linux.so.2@g" > \
+ $SPECFILE
INCDIR="`dirname $SPECFILE`/include"
unset SPECFILE
INCDIR="`dirname $SPECFILE`/include"
unset SPECFILE
@@
-38,7
+39,7
@@
if [ "$priority" = "4" ] ; then
fi
if [ "$priority" = "5" ] ; then
fi
if [ "$priority" = "5" ] ; then
- confopt="$confopt --
enable-shared --with-lib-path=$prefix/lib"
+ confopt="$confopt --
disable-nls --with-lib-path=$prefix/lib"
if [ "$hdw_crossbuild" = "0" ] ; then
libpath="/usr/lib:/lib"
else
if [ "$hdw_crossbuild" = "0" ] ; then
libpath="/usr/lib:/lib"
else
@@
-59,5
+60,5
@@
post_install() {
# (glibc will go there)
make -C ld clean
make -C ld LIB_PATH=$libpath
# (glibc will go there)
make -C ld clean
make -C ld LIB_PATH=$libpath
- cp -v ld/ld-new $
bindir
+ cp -v ld/ld-new $
prefix/bin
}
}