This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RE: Bizarre build problem that goes away when you "make" again.
- From: "Kaz Kylheku" <kaz at zeugmasystems dot com>
- To: <libc-alpha at sources dot redhat dot com>
- Date: Wed, 4 Oct 2006 13:10:17 -0700
- Subject: RE: Bizarre build problem that goes away when you "make" again.
Solved!
In my build script, I used the obvious name TARGET_ARCH.
Unfortunately, GNU Make's implicit rules also use TARGET_ARCH.
You can quickly uncover that if you run "strings" on /usr/bin/make.
Still, it's hard to understand why the problem went away in one
particular situation.
Think ... think ...
Aha, I got it! I've been doing
TARGET_ARCH=<asdf> ./build.sh
But that time when the MIPS rebuild worked, I forgot the
assignment. And the variable defaulted to mips-linux inside the
script. Of course, it's not exported by the script. I wouldn't
do anything so stupid as to export random environment
variables which could wreak who knows what havoc. :)