summaryrefslogtreecommitdiff
path: root/mk/compiler
AgeCommit message (Collapse)AuthorFilesLines
2007-03-15_COMPILER_LD_FLAG is only used in this file, and no other compiler filerillig1-5/+2
defines this variable, so it doesn't hurt to remove it.
2007-03-09Removed unused variables. Note that _ALIASES.* could only be removedrillig1-10/+2
because all the alias names are covered by _WRAP_ALIASES.*. Slowly this file becomes as short and simple as it should have always been.
2007-03-09Removed the creation of the extra wrapper directory WRKDIR/.sunpro andrillig1-45/+3
everything that is related to it. The wrappers in WRKDIR/.wrapper now call the compilers in SUNWSPROBASE directly. The aliases that have been provided had never been called because WRKDIR/.wrapper was earlier in the PATH and already called the canonical compiler (for example, .wrapper/gcc called .sunpro/cc, not .sunpro/gcc). Also removed the comments related to f2c. We have a version control system to keep outdated code, so why keep it in the current source?
2007-03-09Rewrote the file so that it is easier to see what needs to be done whenrillig1-26/+31
adding a language.
2007-03-07Make the #error directive an error with MIPSpro.rillig1-1/+6
2007-02-10Replaced the deprecated PKG_SKIP_REASON with PKG_FAIL_REASON.rillig1-2/+2
2007-01-16when using sunpro, go ahead and use the sun fortran compiler insted of f2c. ↵dmcmahill1-9/+23
The former seems to work as well or better
2007-01-16alias f2c-f77 as g77 as well as f77 and f2c-f77. libtool cares.dmcmahill1-2/+2
2007-01-08gcc2 does not support -std=c99. If c99 is needed, requiregavan1-1/+6
at least gcc 3.0.
2006-12-15Remove trailing spaces.martti11-26/+26
2006-12-06Don't force strict C99 mode by default, but the relaxed GNU-C99 mode.joerg1-2/+2
2006-12-02Instead of setting compiler flags in each package if it uses C99,jschauma2-2/+10
allow USE_LANGUAGES+=c99 and let gcc and mipspro do the right thing. May need to be reviewed/added for other compilers. ok rillig@
2006-10-22Added header comments.rillig7-7/+53
2006-10-14Added the user-settable variable CCACHE_DIR, so that the cache can berillig1-2/+13
outside of WRKDIR. I don't see a reason for having the cache inside a directory that will go away on "make clean", but I left the default value as is.
2006-08-06CPP on IRIX 5 with IDO cc is /usr/lib/cppschwarz1-2/+9
2006-07-25Whenever f2c is mentioned in USE_LANGUAGES, a C compiler is also needed,rillig1-1/+3
so automatically add it to USE_LANGUAGES. Fixes PR 34079.
2006-07-21"BUILD_ENV" was misnamed. It's actually the environment that is passedjlam3-9/+9
to all internal recursive make processes. As such, rename it to "PKGSRC_MAKE_ENV". XXX Note, some of the usage of this variable in package Makefiles seems XXX incorrect. They probably want "MAKE_ENV", which is the environment XXX passed to the make process when running "make" within ${WRKSRC}.
2006-07-06On Solaris set _COMPILER_ABI_FLAG.64 to be consistent with the sunpromarkd1-1/+5
settings.
2006-07-06Set _COMPILER_ABI_FLAG.64 correctly for non sparc (ie amd64).markd1-1/+5
2006-04-05Change _GCC_DIST_VERSION from 3.4.5 to 3.4.6 to reflect update toshannonjr1-2/+2
lang/gcc34.
2006-02-10Bump '_GCC_DIST_VERSION' to '3.4.5' to match lang/gcc34shannonjr1-2/+2
2005-10-30added missing header lines.schwarz1-0/+2
2005-10-16added support for the SGI IDO (IRIX Development Option) cc used by IRIX 5.3.schwarz1-0/+76
changes approved by jschauma and recht.
2005-07-21some packages expect "-Wl," immediately before flags to be passed togrant1-4/+6
the linker, set _COMPILER_RPATH_FLAG accordingly. "-Wl," is removed by the sunpro compiler wrapper where necessary. fix comment for _LINKER_RPATH_FLAG while here. this fixes, among other things, apache modules built with apxs.
2005-05-31Updated _GCC_DIST_VERSION from 3.4.3 to 3.4.4 to reflect recent updateshannonjr1-2/+2
to lang/gcc34.
2005-05-17The sunpro wrapper now creates aliases for gcc and g++, too. This is neededrillig1-3/+3
because the <sys.mk> Makefile fragment sets CC?=gcc.
2005-03-24USE_BUILDLINK3 is no longer optional (and cannot be turned off). Per mailtv2-18/+6
to tech-pkg: ===== * USE_BUILDLINK3=YES will be unconditional. (In fact, USE_BUILDLINK3 will be ignored altogether by mk/; but see below.) * NO_BUILDLINK and NO_WRAPPER will be ignored by mk/. If a build happens, these phases will happen. * The existing NO_BUILD will imply the previous NO_BUILDLINK and NO_WRAPPER. If no build happens, those phases are not needed. * NO_TOOLS will be ignored by mk/. The tools phase, which provides much more than just the C compiler, will always happen regardless of package. This will make metapackage builds only slightly slower, in trade for far less user error.
2005-02-16override the GNU configure test for __attribute__. the test commonlygrant1-1/+10
uses a nested function, which icc does not support.
2005-02-15add support for icc, the Intel C++ Compiler (Linux).grant1-0/+81
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-01-24Merge down deferred EVAL_PREFIX handling from tv-derecurse branch.tv3-6/+3
Also move its definition later in bsd.pkg.mk, so that it actually works for compiler/*.mk (which is why those files originally had to provide "defaults" for their variables -- they never did get evaluated).
2005-01-21Re-add direct symlink logic, optional under GCC_USE_SYMLINKS=yes. Savestv1-2/+8
one fork/exec step on platforms where gcc is compiled with hardcoded gcc-lib pathnames. This applies to most platforms, but the default currently remains not to use symlinks so as to avoid unexpected gotchas for users.
2005-01-12add my copyright/license.grant1-1/+36
2005-01-12Correct my name to what I legally use.jlam3-6/+6
2005-01-12Use ${AWK} instead of a bare "awk".jlam1-3/+3
2005-01-12Rearrange how LANGUAGES.<compiler> is set so that we can more flexiblyjlam4-43/+59
detect when only parts of a compiler toolchain are present, e.g. the SunPro C compiler is installed, but not the Fortran-77 compiler.
2005-01-12Put a TNF copyright on files that I authored.jlam4-4/+144
2005-01-12Whitespace.jlam2-30/+30
2005-01-12Even more whitespace.jlam1-13/+13
2005-01-12Whitespace.jlam1-3/+3
2005-01-12Prepend the CCC compiler dir to the PATH so that they're found by thejlam1-1/+6
wrapper scripts.
2005-01-12Backout part of previous commit that was unrelated.jlam2-39/+29
2005-01-12Remove explicit overrides for CC and CXX that prevented using thejlam4-43/+41
definitions supplied in /etc/mk.conf. It should now be possible to pass optimization flags directly using CC and CXX when using CCC and xlC compilers.
2005-01-12Remove explicit overrides for CC and CXX that prevented using thejlam2-14/+2
definitions supplied in /etc/mk.conf. It should now be possible to pass optimization flags directly using CC and CXX when using SunPro and MIPSpro compilers.
2005-01-12Nuke USE_FORTRAN and bring the f2c handling within the mk/compilerjlam6-5/+155
framework. The list of changes include: * Modify compiler.mk so that "c" is always prepended to USE_LANGUAGES, so we no longer need to say it in package Makefiles. Packages should now append to USE_LANGUAGES instead of setting it. * Create mk/compiler/f2c.mk which implements another pseudo-compiler "f2c" that may be used with any C compiler backend, e.g. PKGSRC_COMPILER= f2c ccache gcc * Teach the various "real" compiler files, e.g., sunpro.mk, mipspro.mk, etc., to use f2c if the native Fortran compiler isn't present. Packages that use Fortran should now simply include the line: USE_LANGUAGES+= fortran in the package Makefile.
2005-01-10_ALIASES.<wrappee> should be cumulative.jlam2-6/+6
2005-01-10Whitespace nits.jlam2-10/+10
2004-11-30Modify the way that the toolchain variables, e.g. CC, CPP, CXX, LD, etc.,jlam7-94/+168
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-27CFLAGS+=-ma because most packages expect alloca to be available andgrant1-1/+5
this makes it so with xlc.
2004-11-23Use CCPATH instead of referring to the C compiler by its full path injlam5-20/+20
multiple places.
2004-11-23Whitespace changes.jlam2-18/+18