[Bug build/23681] Program environment variables (AR, LD, AS, ...) are ignored
carlos at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Sep 19 23:25:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23681
Carlos O'Donell <carlos at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jsm28 at gcc dot gnu.org
--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
Joseph Myers might have some background about why this is the case in glibc.
Traditionally we pass arguments to configure directly on the configure command
line e.g. ../../src/glibc/configure --prefix=/usr ... CC='whatever'
CXX='whatever' AR='whatever' AS='whatever' LD='whatever' NM='whatever'
OBJCOPY='whatever' OBJDUMP='whatever' RANLIB='whatever' READELF='whatever'
STRIP='whatever' ...
It might be that we ignore environment variables as a conscious choice because
they are often incorrectly set for building a core system library like glibc.
The library cannot be built with the usual set of options a program would be
built with, and so we require you to consciously do something like:
../../src/glibc/configure ... CC="$(CC)" CXX="$(CXX)" ... to use the
environment variables you want for the build.
I haven't thought very deeply about this problem, or your particular problem
also. Joseph might have more insight here. Adding Joseph to the CC.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list