summaryrefslogtreecommitdiff
path: root/mk/wrapper
AgeCommit message (Collapse)AuthorFilesLines
2007-08-02Add core of the infrastructure support for cross-compilation.joerg4-2/+177
- 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-06-18Changed the plain "mkdir" into ${MKDIR}, like in all the other cases.rillig1-2/+2
Apparently, the tools directory isn't in the PATH at the point where this code is executed. Fixes PR 35487.
2007-06-15Added transformations for -R, -fPIC, -kPIC, -KPIC and -g3.rillig1-1/+5
2007-06-09Added a slight variation of the patch provided in PR 36187 by Naotorillig1-4/+7
Morishima.
2007-06-06Replaced ${_PKG_SILENT}${_PKG_DEBUG} with a simple ${RUN} to save somerillig1-49/+39
space.
2007-05-28Remove trailing spaces.martti2-4/+4
2007-05-19When a wrapped compiler or linker command fails, the transformed commandrillig1-2/+2
line is no longer printed by default. To get that behavior back, you can set the variable WRAPPER_DEBUG to "yes". This avoids some noise during the build. The old behavior was mostly useful on Solaris and IRIX, where a -std=c99 or -c99 option had been added to the compiler's arguments by the wrapper. This caused diagnostics that were hard to understand, since the user did not specify these flags and there was no sign that they had been added.
2007-05-06Back out previous. The packages that incorrectly assume that ldtnn2-7/+1
--version-script works are few enough to warrant fixing each one of them instead. Silenty dropping the flag makes it impossible to detect whether or not --version-script is supported. Pointed out by joerg@
2007-04-29--version-script is GNU ld specific, remove from command line.tnn2-1/+7
2007-04-28Correct comment about -g3 flag.tnn1-2/+2
2007-04-22Handle linker optimization flag.tnn1-1/+6
2007-04-21fix typotnn1-2/+2
2007-04-21add workaround for ld(1) run path problems and document thosetnn2-1/+33
2007-04-14Teach pkgsrc about HP-UX.tnn3-1/+106
2007-04-12Add OSF1 wrapper quirks to always enable posix sockets and iso C++ iostreams.tnn1-1/+4
Fixes PR 31444. Fixes PR 31447. Both problems reported by Rumi Szabolcs.
2007-04-10+ -march=*rillig1-1/+2
2007-04-09Remove special treatment of "DynaLoader.a" completely. It's not necessarytron1-14/+1
with current libtool version and breaks the build under Darwin 8.x and NetBSD 4.0_BETA2.
2007-03-15wrapper_type can be IMAKE, too.rillig1-2/+2
2007-03-07Added the flags to control diagnostics.rillig1-1/+7
2007-03-07Fixed the documentation of the opt:*:* transformation.rillig1-2/+2
2007-02-23The compiler option -Wl,foo,bar,baz is split into -Wl,foo -Wl,barrillig1-1/+26
-Wl,baz before processing the resulting options again. Fixes PR 32203.
2007-02-22Changed the default warning message to include the word "unknown", sincerillig1-2/+2
otherwise it doesn't sound like a warning.
2007-02-22More documentation.rillig1-3/+3
2007-02-21gcc understands -Wno-unused-parameter.rillig1-1/+2
2007-02-21Changed the failure into a warning when options such as "-I -L" appearrillig1-2/+2
next to each other.
2007-02-21The options -I, -L and -R must not be followed directly by anotherrillig2-2/+12
option. Instead of just merging them, the wrapper fails. Let's see which packages get broken by that and then fix them. I've also heard rumours that a plain -L is used as an alias to -nostdlib in some compilers. This would have been handled wrong up to now, since it definitely wasn't intended to be merged with the following argument.
2007-02-20Mapping command line options to the ABI is not as simple as I thought:rillig1-8/+15
-32 does _not_ belong to ABI 32. Instead, the mapping is: ABI Options (undef) -o32 -32 32 -n32 64 -64 While here, allowing -OPT:* to pass through to the compiler, since it will understand it. This should fix PR 35729.
2007-02-19The ABI for which the code should be generated can be queried from therillig4-5/+28
wrapper_abi variable. This is used in the MIPSpro wrapper to reject any package that tries to compile a file for the wrong ABI. This is not just a warning because such a package most likely has more severe problems. The gcc -Wall option seems to be similar to the MIPSpro -fullwarn option, so map them.
2007-02-19The argument -64 means to use the 64-bit ABI for Sun C and MIPSpro.rillig1-1/+2
2007-02-18The mipspro compiler knows -32, -n32 and -64, of course.rillig1-1/+5
2007-02-18Documented WRAPPER_REORDER_CMDS.rillig1-2/+15
2007-02-07Added option handlers for all of -fPIC, -fpic, -KPIC, -kPIC,rillig1-3/+7
-xcode=pic13 and -xcode=pic32, as suggested in PR 35555. This also fixes and old bug where -fPIC (32 bit) had been translated to -kpic (13 bit), but apparently that doesn't make a big difference in practice.
2007-02-06Added a new variable wrapper_type to the wrappers, so that therillig3-11/+14
transformations can decide whether they happen in a C or a C++ compiler. Now the wrappers don't depend on the basename of the executed compiler wrapper anymore. Fixes PR 35555.
2007-02-06Some more gcc options I've found on Solaris.rillig1-1/+6
2007-02-06More gcc options.rillig1-2/+40
2007-01-17The sunpro C++ compiler needs its own cache, since cc and CC transformrillig1-2/+3
-Wall to different arguments.
2007-01-17The sunpro wrapper needs to distinguish whether cc or CC is called inrillig1-6/+31
some cases. XXX: There should be more support in the infrastructure for this case.
2007-01-14Options to subprocesses like the assember must pass the transformations.rillig1-5/+2
They are _not_ GCC warnings, although they start with -W.
2007-01-08Fixed a syntax error.rillig1-2/+2
2007-01-08MIPSpro knows the -c99, -M and -MDupdate options.rillig1-1/+5
2007-01-06Added some more flags that gcc definitely knows, to reduce the number ofrillig1-3/+22
warnings.
2007-01-04Bugfix: Only regular files can be unwrapped.rillig1-2/+2
2007-01-02Added an "eval" to make the <*> line look like the [*] line, in terms ofrillig1-2/+2
the quoting level. It had contained too many backslashes before, which has led to confusion, at least for me.
2006-12-18Some of the SunPro compilers (cc, c89) cannot handle the -O0 and -O1rillig1-6/+5
options. Some others (c99, CC) can. To avoid linker errors about "illegal option -- 1", these options are converted to -xO0 and -xO1, which work. Committed during the freeze to avoid breakage of packages. The code that passed the -O0 and -O1 options through is relatively new, so there may not have shown packages that break because of this.
2006-12-15Remove trailing tabs.martti2-5/+5
2006-12-15Remove trailing spaces.martti2-10/+10
2006-12-14Add a --wrappee-name command line option to simply return the name ofdmcmahill1-1/+5
the wrapped command and exit. This will be used by libtool which needs to figure out the true command name. Yeah, it is ugly behaviour from libtool, but I'm not going to rewrite libtool. Change ok-ed by jlam.
2006-12-10Converted to using the functions from wrapper-subr.sh.rillig1-31/+28
2006-12-10+ -Mrillig1-1/+2
2006-12-09Added a small program to test a single transformation plug-in.rillig1-0/+41