Which version of sys-devel/binutils do you have when it works?
Is it always sys-devel/binutils-2.19 when it does not work?
While 'tic' hangs, can you post the output of:
$ readelf -d /var/tmp/portage/sys-libs/ncurses-5.7/work/narrowc/progs/tic
We do have this same problem in Prefix, where I currently have binutils-2.19.51.0.3.20090310 (ld -v). This Prefix runs on top of Gentoo Linux (x86 stable), where I do _not_ have this problem - with binutils-2.18.
According to 'readelf -d', the just built 'narrowc/progs/tic' only has the 'RPATH' entry, but lacks the 'RUNPATH' entry, which causes LD_LIBRARY_PATH to be ignored on execution, and thus using the installed lib during execution.
Note: In Prefix, we pass the '-rpath' linker option via binutils-config wrapper.
As this isn't done in main, and thus no RPATH/RUNPATH are recorded, I'm not sure if this helps here at all.
Which version of sys-devel/binutils do you have when it works? binutils- 2.19 when it does not work?
Is it always sys-devel/
While 'tic' hangs, can you post the output of: portage/ sys-libs/ ncurses- 5.7/work/ narrowc/ progs/tic
$ readelf -d /var/tmp/
We do have this same problem in Prefix, where I currently have binutils- 2.19.51. 0.3.20090310 (ld -v). This Prefix runs on top of Gentoo Linux (x86 stable), where I do _not_ have this problem - with binutils-2.18.
According to 'readelf -d', the just built 'narrowc/progs/tic' only has the 'RPATH' entry, but lacks the 'RUNPATH' entry, which causes LD_LIBRARY_PATH to be ignored on execution, and thus using the installed lib during execution.
Note: In Prefix, we pass the '-rpath' linker option via binutils-config wrapper.
As this isn't done in main, and thus no RPATH/RUNPATH are recorded, I'm not sure if this helps here at all.