pkgsrc/mk/wrapper
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
..
arg-pp-darwin-gcc
arg-pp-main Remove special treatment of "DynaLoader.a" completely. It's not necessary 2007-04-09 22:33:26 +00:00
arg-pp-mipspro-cc
arg-pp-sunpro-cxx
arg-source Add core of the infrastructure support for cross-compilation. 2007-08-02 18:19:31 +00:00
bsd.wrapper.mk Add core of the infrastructure support for cross-compilation. 2007-08-02 18:19:31 +00:00
buildcmd
cmd-sink
cmd-sink-aix-cc
cmd-sink-aix-ld
cmd-sink-aix-xlc
cmd-sink-cross-cpp Add core of the infrastructure support for cross-compilation. 2007-08-02 18:19:31 +00:00
cmd-sink-cross-gcc Add core of the infrastructure support for cross-compilation. 2007-08-02 18:19:31 +00:00
cmd-sink-darwin-xlc
cmd-sink-hpux-cc Back out previous. The packages that incorrectly assume that ld 2007-05-06 10:05:38 +00:00
cmd-sink-hpux-ld Remove trailing spaces. 2007-05-28 11:07:00 +00:00
cmd-sink-icc-cc
cmd-sink-icc81-cc
cmd-sink-interix-gcc
cmd-sink-interix-ld
cmd-sink-ld Remove trailing tabs. 2006-12-15 13:15:06 +00:00
cmd-sink-osf1-cc The Tru64 linker does not know -h ${soname}, only -soname ${soname}. 2006-11-03 07:28:53 +00:00
cmd-sink-osf1-ld The Tru64 linker does not know -h ${soname}, only -soname ${soname}. 2006-11-03 07:28:53 +00:00
cmd-sink-solaris-imake
cmd-sink-sunpro-cxx
cmd-sink-unixware-gcc
gen-reorder.sh
gen-transform.sh Fixed the documentation of the opt:*:* transformation. 2007-03-07 12:40:54 +00:00
logic Remove trailing tabs. 2006-12-15 13:15:06 +00:00
NOTES The "scan" program does not modify "$@". 2006-10-21 11:43:42 +00:00
scan
test-transform.sh Added a small program to test a single transformation plug-in. 2006-12-09 12:42:43 +00:00
transform-aix-cc Converted to use the new transform_* functions from wrapper-subr.sh. 2006-11-30 11:51:39 +00:00
transform-ccc-cc Remove trailing spaces. 2007-05-28 11:07:00 +00:00
transform-gcc + -march=* 2007-04-10 03:44:34 +00:00
transform-icc-cc Added handlers for the standard options. 2006-11-30 12:18:32 +00:00
transform-ido-cc Made the code simpler by converting it to the new transform_* functions. 2006-11-30 12:34:30 +00:00
transform-mipspro-cc Added transformations for -R, -fPIC, -kPIC, -KPIC and -g3. 2007-06-15 15:34:31 +00:00
transform-mipspro-ucode-cc Converted the MIPSpro wrappers to use the transform_* functions. 2006-11-30 13:00:16 +00:00
transform-sunpro-cc Added a slight variation of the patch provided in PR 36187 by Naoto 2007-06-09 11:27:33 +00:00
transform-xlc-cc Converted to using the functions from wrapper-subr.sh. 2006-12-10 03:14:59 +00:00
wrapper-defs.mk
wrapper-subr.sh Changed the default warning message to include the word "unknown", since 2007-02-22 14:54:32 +00:00
wrapper.sh When a wrapped compiler or linker command fails, the transformed command 2007-05-19 17:25:56 +00:00