View Single Post
Old 09-08-2015, 03:47 PM   #65
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@knc1: Ooh, poisoning LDFLAGS with a specific pattern is indeed a nice idea to detect wonky buildsystems :].

Expect libtool to crush your dreams, though, it has a tendency to try to outsmart you by stripping unknown/broken flags ;/. (I ran into that when switching to LTO, which was all kinds of fun, because of that specific issue of buildsystems misusing CFLAGS/LDFLAGS, or not keeping both at link time, which in turn led me to discover said libtool 'feature').

Haven't found a good way to work-around that, sadly, so I'm currently using very ugly hacks to patch Makefiles when I can't use a simple global, semi-standard override (AM_LDFLAGS, IIRC).



TL;DR: As you're starting to see, there's a certain form of masochism involved in anything cross-compile related... ^^.


EDIT: Ah, right, that's also why I couldn't put the libtool-proof flags in LDFLAGS: the basic autotools sanity check fails. So poisoning LDFLAGS has to be done with something 'sane' that won't break at build/link time... Which in turn means you have to pore over build logs with your good friend ag/grep to pinpoint broken buildsystems...

Last edited by NiLuJe; 09-08-2015 at 04:01 PM.
NiLuJe is offline   Reply With Quote