This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/18555] New: Need a command line switch to control gcc's include and libary finding mechanism
- From: "spolk at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Nov 2004 21:15:42 -0000
- Subject: [Bug preprocessor/18555] New: Need a command line switch to control gcc's include and libary finding mechanism
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Apple needs a command-line switch to the compiler which will change the lookup of include files and
link libaries. The semantics would be something like:
-isystem-headers-and-libaries <pathname>
When this command line option is given to the compiler, all of the compiler's builtin searching for
includes and libaries would start with <pathname> instead of with '/'. If a file is included or linked with
and is not in the hierarchy given by <pathname> the compiler will return a "file not found" error.
All other command line options related to include and link searching, particular paths given by -I and
the like, would be unchanged.
This command line search is useful for Apple's compiler, where we would like to build for other
versions of Darwin while running on a stable host. It could also be used in an environment such as a
distcc farm, where the system headers for a target system are in a known location, but the binaries on
the build system will work just fine to build the program.
--
Summary: Need a command line switch to control gcc's include and
libary finding mechanism
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: spolk at apple dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin7
GCC host triplet: powerpc-apple-darwin7
GCC target triplet: powerpc-apple-darwin7
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18555