View Single Post
Old 09-08-2015, 06:17 PM   #67
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NiLuJe View Post
@knc1: Ooh, poisoning LDFLAGS with a specific pattern is indeed a nice idea to detect wonky buildsystems :].
- - -
After a decent nap, I discovered what you where writing about.
The highlighted line in the screenshot had an extra space in it.

But I lucked out, the build still blew up early, with something I can use to track back through the system with:
Added: "\" and ## comment for readablity:
Code:
configure:3218: checking whether the C compiler works
configure:3240: /var2/k2-work/k2-rel/./host/usr/bin/arm-linux-gcc \
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64   -O2  \
-Wl, -I/mnt/base-us/esys/lib/ld-linux-armhf.so.3 \  ## <= from TARGET_GCCFLAGS
-DGQ \
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \
-I/mnt/base-us/esys/lib/ld-2.21.so \  ## <= from TARGET_LDFLAGS
conftest.c  >&5
Now, after my tweaking of the build system, TARGET_LDFLAGS should **only** be passed to *-linux-ld

I grep'd the build repository, there are only 160 occurances of LDFLAGS to be checked.
knc1 is offline   Reply With Quote