Created attachment 368930 [details, diff]
Same deal as bug #499270. Fails to build when cross-compiling because libtool tries to relink and adds -L/usr/lib to the flags. Using elibtoolize fixes it. The attached patch fixes the oldest (0.10.36, needed by Bluez 4) and the newest (1.2.0). I tried one other version (1.0.10) and that was affected too so it looks like all the versions in the tree are affected.
Damn, looks like this also applies to gst-plugins-base and probably the rest too. New bug report needed?
I came across this kind of "fix" in other ebuilds and I never figured out why upstream always release bugged libtool ?
Is is something we patch on Gentoo ?
Yes, look at /usr/portage/eclass/ELT-patches/cross/link-ROOT. My own cross-building scripts have allowed me to build more than most people seem to manage so I'm encountering this problem on more and more packages. I am reluctant to file a whole string of bug reports so I was going to ask about it in #gentoo-embedded.
So did you get an answer on #-embedded ? It this is required on so many packages, maybe we should just have package managers apply this all the time ?
Wow, has it really been 11 months? I never did ask them because other things took priority like becoming a dev. Nearly crossed that bridge now. But yes, I was implying that this should be applied all the time. Having said that, I've since noticed that we only have relink patches for libtool 1.4. The latest version is now 2.4. You'd think this would no longer be an issue but I guess plenty of software still ships with 1.4.
(In reply to James Le Cuirot from comment #5)
> Having said that,
> I've since noticed that we only have relink patches for libtool 1.4. The
> latest version is now 2.4. You'd think this would no longer be an issue but
> I guess plenty of software still ships with 1.4.
Ignore what I said there, I was looking at the wrong patch. cross/link-ROOT is the relevant one and it still applies against 2.4. I'm going to raise this subject on the mailing list now.