pkgsrc/mk/compiler
joerg 005620851f Add core of the infrastructure support for cross-compilation.
- USE_CROSS_COMPILATION activates it, CROSS_DESTDIR specifies root of
  the target filesystem
- derive _CROSS_DESTDIR from CROSS_DESTDIR or MAKEOBJDIR
- buildlink3.mk prefixes the files to symlink with _CROSS_DESTDIR
- compiler/gcc.mk knows about the target prefix (e.g. i386--netbsdelf)
- PKG_DBDIR is prefixed with _CROSS_DESTDIR
- package-install and bin-install are not called with su
- install and strip are redirected to the tool version
- links for the target specific ar, as, ld, nm, objdump, ranlib and
  strip are added
- compiler wrapper detect if linking is requested or not
- special command sinks for CPP and CC/CXX add the cross-compile magic:
  - modify include dirs to get the target /usr/include
  - modify linker dirs and runpath to use target /usr/lib at link time,
    but keep correct rpath entries

Supported-by: Google SoC 2007
Basic tests by he@ on Sparc. Review from jlam@.
2007-08-02 18:19:31 +00:00
..
ccache.mk Remove trailing spaces. 2006-12-15 12:46:23 +00:00
ccc.mk _COMPILER_LD_FLAG is only used in this file, and no other compiler file 2007-03-15 22:33:42 +00:00
distcc.mk Remove trailing spaces. 2006-12-15 12:46:23 +00:00
f2c.mk alias f2c-f77 as g77 as well as f77 and f2c-f77. libtool cares. 2007-01-16 17:16:20 +00:00
gcc.mk Add core of the infrastructure support for cross-compilation. 2007-08-02 18:19:31 +00:00
hp.mk Remove trailing spaces. 2007-05-28 11:07:00 +00:00
icc.mk Remove trailing spaces. 2006-12-15 12:46:23 +00:00
ido.mk Remove trailing spaces. 2006-12-15 12:46:23 +00:00
mipspro-ucode.mk Remove trailing spaces. 2006-12-15 12:46:23 +00:00
mipspro.mk Make the #error directive an error with MIPSpro. 2007-03-07 01:37:18 +00:00
sunpro.mk Add C99 support, required for packages which use C99 such as devel/glib2 2007-05-23 08:42:36 +00:00
xlc.mk Remove trailing spaces. 2006-12-15 12:46:23 +00:00