freebsd-dev/gnu/usr.bin/cc/cc_tools/freebsd-native.h
David E. O'Brien 253745e1fc Allow the specification of a prefix for gcc to find all the various bits.
If one wishes to anchor the compiler toolchain tree somewhere other than /,
all one needs to do is set "TOOLS_PREFIX" to a different rooting.

Submitted by:	marcel (in a different format and reworked by me)
1999-12-29 14:42:46 +00:00

54 lines
1.9 KiB
C

/* $FreeBSD$ */
/* FREEBSD_NATIVE is defined when gcc is integrated into the FreeBSD
source tree so it can be configured appropriately without using
the GNU configure/build mechanism. */
#undef SYSTEM_INCLUDE_DIR /* We don't need one for now. */
#undef GCC_INCLUDE_DIR /* We don't need one for now. */
#undef TOOL_INCLUDE_DIR /* We don't need one for now. */
#undef LOCAL_INCLUDE_DIR /* We don't wish to support one. */
/* Look for the include files in the system-defined places. */
#define GPLUSPLUS_INCLUDE_DIR PREFIX"/include/g++"
#define GCC_INCLUDE_DIR PREFIX"/include"
#ifdef CROSS_COMPILE
#define CROSS_INCLUDE_DIR PREFIX"/include"
#endif
/* Under FreeBSD, the normal location of the compiler back ends is the
/usr/libexec directory.
``cc --print-search-dirs'' gives:
install: STANDARD_EXEC_PREFIX/(null)
programs: /usr/libexec/<OBJFORMAT>/:MD_EXEC_PREFIX
libraries: MD_EXEC_PREFIX:MD_STARTFILE_PREFIX:STANDARD_STARTFILE_PREFIX
We really don't need a "STANDARD_EXEC_PREFIX". However w/o it,
"--print-search-dirs" reports "install: /usr/local/lib/gcc-lib/(null)".
It is not harmful, but is just plain wrong. So we define a
"STANDARD_EXEC_PREFIX" to not be misleading. */
#undef STANDARD_EXEC_PREFIX
#undef TOOLDIR_BASE_PREFIX /* Old?? This is not documented. */
#undef MD_EXEC_PREFIX
#define STANDARD_EXEC_PREFIX PREFIX"/libexec/"
#define MD_EXEC_PREFIX PREFIX"/libexec/"
/* Under FreeBSD, the normal location of the various *crt*.o files is the
/usr/lib directory. */
#undef STANDARD_STARTFILE_PREFIX
#undef MD_STARTFILE_PREFIX /* We don't need one for now. */
#define STANDARD_STARTFILE_PREFIX PREFIX"/lib/"
/* FreeBSD is 4.4BSD derived */
#define bsd4_4
/* Tell gcc to locate libgcc.a for us according to the -m rules. */
#undef LIBGCC_SPEC
#define LIBGCC_SPEC \
"%{!shared:%{!pthread:%{!kthread:libgcc.a%s}}%{pthread|kthread:libgcc_r.a%s}}"