On 07/14/2015 02:27 AM, Stijn De Weirdt wrote:
prepend-path PATH $root/bin
set-alias addr2line "$root/bin/powerpc64-bgq-linux-addr2line"
why so complicated? just make the symlinks in $root/bin?
That is what I came up. I use these:
http://www.siliconslick.com/easybuild/ebfiles_repo_cleaned/bgsys/GCC/
with a "configure" script like this:
#!/bin/sh
BGD=`echo $1 | sed 's/--prefix=//'`
BGS=$2
echo "BGD=$BGD" >> makefile # destination
echo "BGS=$BGS" >> makefile # source
# EOF
and a "makefile" like this:
# following two vars appended by configure
#BGS = /bgsys/drivers/ppcfloor/gnu-linux/bin
#BGD = /tmp/bg/dst
# alias
addr2line='/bgsys/drivers/ppcfloor/gnu-linux/bin/powerpc64-bgq-linux-addr2line'
default:
# do nothing
install:
mkdir -p $(BGD)/bin ; for x in `ls $(BGS)` ; do xx=`echo $$x | sed
's/powerpc64-bgq-linux-//'` ; ln -s $(BGS)/$$x $(BGD)/bin/$$xx ; done
#EOF
Not pretty but seems to work.
Still not ideal though.
jack (still trying different approaches)