Skip to contentSkip to conversation

DirectFB Fails with --enable-static option because of incorrect ld location

Buildroot Hebbar 1 participant 2 messages Feb 8, 2008 – Feb 16, 2008

lore
Share & tools
lore

Hebbar

author
#0 lore raw

Hi,

Today i was trying to make arm926ejs toolchain with buildroot 4th feb snapshot. I added --enable-static option in directfb.mk file. During build i noticed that directfb is using root ld (/usr/bin/ld) instead of arm-linux-ld build by buildroot toolchain. i renamed /usr/bin/ld to /usr/bin/ld_orig and it failed with below error.

Is there any way to make directfb makefile to consider buildroot toolchain built ld instead of /usr/bin/ld

<snip>
<snip>

Making install in fbdev
make[3]: Entering directory `/home/project/original/bldrt/buildroot/build_arm/DirectFB-1.0.1/systems/fbdev' rm -f .libs/libdirectfb_fbdev.a.tmp/*.o
if test -d .libs/libdirectfb_fbdev.a.tmp; then rmdir .libs/libdirectfb_fbdev.a.tmp; fi
mkdir .libs/libdirectfb_fbdev.a.tmp
(cd .libs/libdirectfb_fbdev.a.tmp && /home/project/original/bldrt/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-ar x ../../.libs/libdirectfb_fbdev.a)
ld -o libdirectfb_fbdev.o -r .libs/libdirectfb_fbdev.a.tmp/*.o
/bin/sh: ld: command not found
make[3]: *** [libdirectfb_fbdev.o] Error 127
make[3]: Leaving directory `/home/project/original/bldrt/buildroot/build_arm/DirectFB-1.0.1/systems/fbdev' make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/project/original/bldrt/buildroot/build_arm/DirectFB-1.0.1/systems' make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/project/original/bldrt/buildroot/build_arm/DirectFB-1.0.1'
make: *** [/home/project/original/bldrt/buildroot/build_arm/staging_dir/usr/lib/libdirectfb.so] Error 2

root at guru_vlinux:~/project/original/bldrt/buildroot# ls -la /usr/bin/ld* -rwxr-xr-x 1 root root 430804 Jan 4 11:17 /usr/bin/ld_orig
-rwxr-xr-x 1 root root 5871 Jan 12 15:21 /usr/bin/ldd_orig

Regards
Gururaja

Signature · 2 lines
View this message in context: http://www.nabble.com/DirectFB-Fails-with---enable-static-option-because-of-incorrect-ld-location-tp15350519p15350519.html
Sent from the BuildRoot mailing list archive at Nabble.com.
author
#1 lore raw

Hi

Isnt there any one who can shed a light on this and let me know what to do for DirectFB to take ld command from STAGING_DIR/usr instead of from /usr/bin

Regards
Gururaja

Signature · 2 lines
View this message in context: http://www.nabble.com/DirectFB-Fails-with---enable-static-option-because-of-incorrect-ld-location-tp15350519p15514472.html
Sent from the BuildRoot mailing list archive at Nabble.com.