summaryrefslogtreecommitdiff
path: root/mk/compiler
AgeCommit message (Collapse)AuthorFilesLines
2008-06-17Sun Studio 12 has a generic -m64 flag rather than individual -xarch targets.sketch1-8/+10
2008-05-24Suppress automatical addition c to USE_LANGUAGES (ref. PR 34079)obache1-3/+3
if F2C does not really required. Fixes problem mentioned in PR 38626.
2008-02-07Replaced _PKG_SILENT and _PKG_DEBUG with RUN.rillig10-49/+49
XXX: Why do we have the exactly same code in all the files?
2008-01-15Always tell the C++ compiler that we want support for ANSI C++ featurestnn1-1/+4
like namespace std enabled.
2007-11-30Solaris SunPro Compiler 11/12 fails on Solaris 8/9 with -xc99. The header ↵rhaen1-1/+9
files supplied by the OS are not c99 aware, the manpage suggests the setting: -xc99=all,no_lib for Solaris 8/9. See PR 37200
2007-10-16Added the variable CCACHE_BASE, so that a ccache other than the onerillig1-26/+35
installed by devel/ccache can be used. This is especially important for cross-builds. Documented IGNORE_CCACHE. Fixed the double use of the directory ${WRKDIR}/.ccache, which was used both as wrapper directory and as cache directory.
2007-10-05Added lots of XXX that should be cleaned up when the compiler frameworkrillig1-1/+11
is rewritten the next time.
2007-09-18For Portable C Compiler.reed1-0/+78
Add beginning of PKGSRC_COMPILER=pcc support. Based on "sunpro". Please help improve this. I have not tested with C++ or fortan.
2007-08-30At least with XLC V9, xlc -V isn't that useful as it prints thejoerg1-2/+2
man page. Use -qversion instead.
2007-08-15Provide _COMPILER_RPATH_FLAG and _LINKER_RPATH_FLAG. This should workjoerg1-2/+14
at the very least with AIX 5.3 directly and for older, wrapper should take care. Provide some more sane defaults for XLC and bail out explicitly if XLCBASE can't be determined.
2007-08-11When calling gcc to extract the version number, pass downjoerg1-2/+2
ALL_ENV as well. This ensures that any locale settings are overridden and the output matches what pkgsrc expects. This should fix some of the strange bootstrap issues seen over time that were seemingly fxied by USE_NATIVE_GCC=yes.
2007-08-02Add core of the infrastructure support for cross-compilation.joerg1-14/+17
- 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-05-28Remove trailing spaces.martti1-3/+3
2007-05-23Add C99 support, required for packages which use C99 such as devel/glib2sketch1-1/+6
2007-04-17fix botched $NetBSD$tnn1-1/+1
2007-04-17add support for the HP-UX C/aC++ compilerstnn1-0/+89
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