summaryrefslogtreecommitdiff
path: root/mk/wrapper
AgeCommit message (Collapse)AuthorFilesLines
2005-03-08fix previous to work with pkgsrc bmake, and add a comment explaininggrant1-2/+5
why it must be done this way.
2005-03-06Also echo the wrapper stages if PKG_VERBOSE is defined, not just whenagc1-2/+2
PKG_DEBUG_LEVEL > 1.
2005-02-19add wrappers to transform arguments for AIX's ld(1), notably, if wegrant4-1/+253
are dynamically linking, the -brtl flag must be passed to the linker so that the runtime linker is used. tested on AIX 4.3 and 5.1 by garbled@.
2005-02-16drop -fexceptions which icc doesn't understand.grant1-2/+2
2005-02-16Always link against the Intel provided C++ runtime library.grant1-1/+6
2005-02-16properly detect icc 8.1, which needs a different argument togrant2-1/+71
statically link the Intel provided libraries.
2005-02-15it's 2005, not 2004.grant2-4/+4
2005-02-15add support for icc, the Intel C++ Compiler (Linux).grant3-1/+149
icc is a high performance compiler suite for Linux/i386 and ia64, and is free for non-commercial use. see: http://www.intel.com/software/products/compilers/clin/ for more information. tested with icc version 8.0 and 8.1 on Slackware 10/i386.
2005-02-15The libtool wrapper should always do the compiler wrapper transformations,jlam1-3/+1
so move the setting for _WRAP_ARG_PP.LIBTOOL out of conditional areas of bsd.wrapper.mk and set it globally in bsd.buildlink3.mk with the rest of the libtool wrapper variables.
2005-02-14Add some more debugging annotations for the work log to note split argsjlam1-3/+3
and skipped args.
2005-02-14Move some Darwin-specific code from arg-pp-main into arg-pp-darwin-gcc.jlam2-19/+23
2005-02-14Teach the libtool wrapper about the same types of transformations thatjlam1-1/+3
the compiler wrapper already knows to do. This should protect "-install_name ..." from wrapper transformations within the libtool wrapper on Darwin and fixes PR pkg/29215. Software that properly use libtool don't pass an explicit "-install_name ..." because libtool always generates its own such argument when building the (Darwin) shared library. However, not every piece of software, including the ones like lang/tcl that pkgsrc converted to use libtool, will use libtool in the documented fashion. Longer term, those packages should be fixed properly, but we will still need the libtool wrapper to avoid transforming arguments that the compiler wrapper itself doesn't transform, e.g. for MIPSpro and -LANG:*.
2005-01-26Fix so that we preserve /usr/lib/foo.so on the command line.jlam1-16/+28
2005-01-25Set argmatch=yes when we transform /some/where/libfoo.so intocube1-1/+4
-L/some/where -lfoo so that the arguments we push on the stack are actually used in logic. Should solve the issue build bash with option 'static' enabled reported on netbsd-users. OK'd by jlam@.
2005-01-24Disallow -rdynamic (was being attempted by shells/scsh).tv1-2/+2
2005-01-18Split out the argument pre-processing logic into its own scriptjlam7-164/+329
arg-pp-main, and allow for wrapper-specific hooks to extend the pre-processing through _WRAP_ARG_PP.<wrappee>. Move the Darwin GCC-related preprocessing into arg-pp-darwin-gcc, and create a arg-pp-mipspro-cc that understands -LANG:<feature> and -LIST:<feature> so that they're not confused with the usual -Ldir options.
2005-01-18Teach the wrapper scripts about HP-UX *.sl shared libraries. Theyjlam1-1/+14
work the same way as ELF *.so shared libraries from pkgsrc's point of view -- just the extension is different.
2005-01-11Really skip the transformations for imake. This shows the danger injlam1-2/+2
having variables that take a "yes" value to turn off behavior.
2005-01-10Fix error in previous that turned off all transformations in alljlam1-3/+3
wrappers. "Oops". We now do transformations by default, and turn them off explicitly for wrappers that don't want them, e.g. IMAKE.
2005-01-10Avoid the silly optimization in the make logic and push it into thejlam2-9/+10
shell script instead. We can't avoid invoking sed at least once since we need to protect the arguments against shell expansion, but we avoid invoking sed for transformations unless there actually are transformations to perform. The code is simpler, more straightforward, and logically correct now. This fixes problems with using a non-GCC compiler with packages that haven't been converted to use buildlink3, noted in PR pkg/28896.
2004-12-19transform -fPIC to -qnocommon and clarify the related comment.grant1-3/+4
2004-12-05add handling for some required -Wl, transformations for packages thatgrant2-1/+68
assume Apple gcc on Darwin. thanks, Johnny :) this allows perl to build with xlc.
2004-12-05whitespace fixgrant1-4/+4
2004-12-05transform -dynamiclib and -fno-common to the appropriate argumentsgrant1-2/+16
for xlc.
2004-12-05Allow the wrapper-specific transform scripts to replace one arg withjlam1-12/+24
several args by setting split_arg="yes" as part of the transformation.
2004-12-05don't throw away all "-Wl," arguments, they are needed to pass variousgrant1-3/+3
shlib options to the Darwin linker.
2004-12-05fix typogrant1-2/+2
2004-11-30Remove the trailing whitespace in the values of the toolchain variablesjlam1-1/+5
(CC, LD, CXX, etc.) if the default values have no arguments. Now, CC == "cc" and not "cc ".
2004-11-30Modify the way that the toolchain variables, e.g. CC, CPP, CXX, LD, etc.,jlam1-43/+47
are handled. The idea now is to simply remove the paths in the values of these variables, leaving behind only the basename plus any arguments, e.g.: CC= /usr/local/bin/gcc becomes CC= gcc CPP= /usr/local/bin/gcc -E becomes CPP= gcc -E The wrapper scripts are generated for every unique executable mentioned by the toolchain variables, so for the example above, only a "gcc" wrapper script is generated for ${CC} and ${CPP}. PKG_{CC,CPP,CXX,etc.} are the paths to the executables wrapped by the wrapper scripts. Note that it's now possible to set "CC" to something more than just the path to the compiler, e.g. CC= cc -ffast-math -funroll-loops -fomit-frame-pointer and the full value of ${CC} will be passed through via CONFIGURE_ENV and MAKE_ENV.
2004-11-20add framework support for Tru64 and the Compaq C compiler.grant4-3/+164
patches provided by Tobias Nygren <tnn at netilium dot org> with minor changes by me.
2004-11-12Insert the default values for WRAPPER_DEBUG and WRAPPER_UPDATE_CACHE asjlam2-4/+6
defaults within the wrapper script. This avoids requiring those two variables to be defined in the shell environment for the correct defaults to take effect.
2004-11-12Teach the native linker to accept "-pthread" by silently dropping it.jlam1-3/+12
This allows "-pthread" to be added to LDFLAGS for use by both the compiler and the linker.
2004-11-11-pthread is invalid for Interix gcc. Add a failure for it so thattv1-2/+2
portability oopses can be caught earlier.
2004-11-10Correct debugging output to show the actual script name.jlam2-4/+4
2004-11-10SunPro understands -Wl,* and passes to the relevant backend, so don't bin it.sketch1-3/+9
Fixes at least graphics/netpbm.
2004-11-09The "transform" file is used to transform arguments on the command line.jlam1-7/+46
The "untransform" file is used to unwrap *-config files and *.lai files. The transform file can be much stricter about what command line arguments should look like, so take advantage of that to fix the "libpath" and "libpath-in-define" regression tests.
2004-11-08g/c unused variable _ws_sep.jlam1-2/+1
2004-11-08Whitespace fixes.jlam1-75/+75
2004-11-08Remove unnecessary argument checks.jlam1-56/+1
2004-10-14Oy. For some reason, when doing :O:u, -L and -R options are strippedtv1-2/+1
completely (they say "cached" but never come out the other side). So revert previous, hopefully to find a resolution later....
2004-10-14Big speedup hack: Sort and uniqify ${_WRAP_TRANSFORM_CMDS}. Eliminatestv1-1/+2
many (hundreds, in some packages) multiple identical transformations.
2004-10-09Move -D_ALL_SOURCE for Interix, required for nearly every compilation, fromtv1-1/+4
the funky CPPFLAGS assignment into the new wrapper framework.
2004-10-08Drop the extraneous comma in "-Wl,-R,/dir" and turn it into "-Wl,-R/dir".jlam1-1/+15
Do the same for options that look like "-Wl,-L,/dir".
2004-10-06add initial support for IBM's XL C/C++ compiler. tested with versiongrant2-1/+75
6.0 on Mac OS X 10.3.5. to use XL C, set PKGSRC_COMPILER=xlc in mk.conf. XLCBASE defaults to /opt/ibmcmp/vacpp/6.0 (the default installation location on OS X), this can be overridden in mk.conf too. this is a work in progress - some simple packages can be built, but there are still lots of issues that need to be worked through.
2004-10-04Add a scan script that checks for "-v" on the command-line, and preventsjlam2-2/+53
the wrappers from adding extra flags to the command-line if "-v" exists. This makes "g++ -v" return the same error code for both the wrapper and the real executable and fixes the problem with the libtool-base build not correctly detecting the C++ compiler and thus not adding the CXX configuration tag to the final libtool script. Downgrade LIBTOOL_REQD to 1.5.10 since the newest version isn't needed with this change.
2004-09-27Move some wrapper definitions into a separate file wrapper-defs.mk that isjlam2-6/+49
included by bsd.prefs.mk. This allows the following variables to be used before bsd.wrapper.mk is included: WRAPPER_DIR WRAPPER_SRCDIR WRAPPER_BINDIR WRAPPER_SHELL WRAPPER_TMPDIR
2004-09-26Make _WRAPPEES into a public variable so that we can more easily createjlam1-8/+12
wrapper scripts in package-land.
2004-09-26We don't use skipargs here... it's all in logic.jlam1-2/+1
2004-09-26fix dylib handlingdanw1-2/+1
2004-09-26Fix rmdir command so it passes remove-dir in the buildlink-transformjlam1-4/+4
regression test.