Commit graph

156 commits

Author SHA1 Message Date
dmcmahill
5e003ae099 when using sunpro, go ahead and use the sun fortran compiler insted of f2c. The former seems to work as well or better 2007-01-16 17:16:24 +00:00
dmcmahill
b08bdfa69e alias f2c-f77 as g77 as well as f77 and f2c-f77. libtool cares. 2007-01-16 17:16:20 +00:00
gavan
5d1e177d2f gcc2 does not support -std=c99. If c99 is needed, require
at least gcc 3.0.
2007-01-08 19:29:45 +00:00
martti
2cc4216d5e Remove trailing spaces. 2006-12-15 12:46:23 +00:00
joerg
2284bed722 Don't force strict C99 mode by default, but the relaxed GNU-C99 mode. 2006-12-06 16:18:19 +00:00
jschauma
721b60b433 Instead of setting compiler flags in each package if it uses C99,
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-12-02 22:32:59 +00:00
rillig
4b4898f8a7 Added header comments. 2006-10-22 00:14:17 +00:00
rillig
701b7f3fd7 Added the user-settable variable CCACHE_DIR, so that the cache can be
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-10-14 08:59:08 +00:00
schwarz
ff389f044d CPP on IRIX 5 with IDO cc is /usr/lib/cpp 2006-08-06 18:59:41 +00:00
rillig
5092ccdc95 Whenever f2c is mentioned in USE_LANGUAGES, a C compiler is also needed,
so automatically add it to USE_LANGUAGES. Fixes PR 34079.
2006-07-25 10:20:03 +00:00
jlam
7d1f4cca8e "BUILD_ENV" was misnamed. It's actually the environment that is passed
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-21 14:27:56 +00:00
markd
5c5f253ff0 On Solaris set _COMPILER_ABI_FLAG.64 to be consistent with the sunpro
settings.
2006-07-06 11:48:03 +00:00
markd
42e8e95800 Set _COMPILER_ABI_FLAG.64 correctly for non sparc (ie amd64). 2006-07-06 11:46:33 +00:00
shannonjr
0faa421404 Change _GCC_DIST_VERSION from 3.4.5 to 3.4.6 to reflect update to
lang/gcc34.
2006-04-05 12:31:24 +00:00
shannonjr
b9b7e90faa Bump '_GCC_DIST_VERSION' to '3.4.5' to match lang/gcc34 2006-02-10 11:26:41 +00:00
schwarz
a315454cc6 added missing header lines. 2005-10-30 10:33:23 +00:00
schwarz
7e79f31cbf added support for the SGI IDO (IRIX Development Option) cc used by IRIX 5.3.
changes approved by jschauma and recht.
2005-10-16 19:44:44 +00:00
grant
aa28d4e53a some packages expect "-Wl," immediately before flags to be passed to
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-07-21 01:36:25 +00:00
shannonjr
671529f3f6 Updated _GCC_DIST_VERSION from 3.4.3 to 3.4.4 to reflect recent update
to lang/gcc34.
2005-05-31 10:51:36 +00:00
rillig
e251db98e2 The sunpro wrapper now creates aliases for gcc and g++, too. This is needed
because the <sys.mk> Makefile fragment sets CC?=gcc.
2005-05-17 19:06:21 +00:00
tv
fe3c1321bf USE_BUILDLINK3 is no longer optional (and cannot be turned off). Per mail
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-03-24 17:46:00 +00:00
grant
733a152138 override the GNU configure test for __attribute__. the test commonly
uses a nested function, which icc does not support.
2005-02-16 10:48:40 +00:00
grant
9fd9fe5331 add support for icc, the Intel C++ Compiler (Linux).
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-15 07:43:43 +00:00
tv
4284bdc494 Merge down deferred EVAL_PREFIX handling from tv-derecurse branch.
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-24 18:20:57 +00:00
tv
49fe383c7d Re-add direct symlink logic, optional under GCC_USE_SYMLINKS=yes. Saves
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-21 21:59:14 +00:00
grant
7240d7d5bd add my copyright/license. 2005-01-12 22:58:29 +00:00
jlam
1fc74ae68e Correct my name to what I legally use. 2005-01-12 22:56:41 +00:00
jlam
d6dfee8415 Use ${AWK} instead of a bare "awk". 2005-01-12 18:42:42 +00:00
jlam
ffd5ad15de Rearrange how LANGUAGES.<compiler> is set so that we can more flexibly
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-12 18:37:52 +00:00
jlam
c39637ec68 Put a TNF copyright on files that I authored. 2005-01-12 18:36:11 +00:00
jlam
d9168be817 Whitespace. 2005-01-12 17:40:48 +00:00
jlam
61c4d07ad0 Even more whitespace. 2005-01-12 17:40:01 +00:00
jlam
44a745628d Whitespace. 2005-01-12 17:39:34 +00:00
jlam
5f768fe677 Prepend the CCC compiler dir to the PATH so that they're found by the
wrapper scripts.
2005-01-12 17:39:18 +00:00
jlam
9e296c8b45 Backout part of previous commit that was unrelated. 2005-01-12 17:30:34 +00:00
jlam
9d72ec1985 Remove explicit overrides for CC and CXX that prevented using the
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-12 17:27:50 +00:00
jlam
a81bf92f7d Remove explicit overrides for CC and CXX that prevented using the
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-12 16:41:14 +00:00
jlam
b6b853727d Nuke USE_FORTRAN and bring the f2c handling within the mk/compiler
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-12 15:31:58 +00:00
jlam
27f0c5d4c2 _ALIASES.<wrappee> should be cumulative. 2005-01-10 19:38:53 +00:00
jlam
f563b96808 Whitespace nits. 2005-01-10 08:59:07 +00:00
jlam
eb9034727a Modify the way that the toolchain variables, e.g. CC, CPP, CXX, LD, etc.,
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-30 14:50:37 +00:00
grant
e71f192b37 CFLAGS+=-ma because most packages expect alloca to be available and
this makes it so with xlc.
2004-11-27 15:28:34 +00:00
jlam
b72e03c8a5 Use CCPATH instead of referring to the C compiler by its full path in
multiple places.
2004-11-23 05:32:22 +00:00
jlam
539fa6a01b Whitespace changes. 2004-11-23 05:24:28 +00:00
dmcmahill
1efd592495 add {CC,CXX,FC,F77}PATH variables which give the complete path and
name of the {CC,CXX,FC,F77} compilers.  These will be used by pkgs
which need to know which compiler and where it is at run time.

Approved by jlam@
2004-11-23 00:46:26 +00:00
wiz
43de7f8bc0 Now that no package uses USE_GCC_SHLIB any longer, remove support
for it from compiler.mk.

Move the variable of the same name used by compiler/gcc.mk and
the gcc* buildlink3 files into private namespace (_USE_GCC_SHLIB).
2004-11-22 22:24:46 +00:00
grant
4321a9c877 quieten spurious broken pipe output from cc. 2004-11-20 05:54:36 +00:00
grant
919cb8bddb add framework support for Tru64 and the Compaq C compiler.
patches provided by Tobias Nygren <tnn at netilium dot org> with
minor changes by me.
2004-11-20 04:37:08 +00:00
tv
069c8dffba For some reason EVAL_PREFIX is not properly using the _DEFAULT values, so
re-add the ?= assignments.  (Will be fixed properly later.)
2004-11-17 17:18:33 +00:00
tv
f1b2b2d6a7 Don't check _*PREFIX/bin for the requested compiler hook program. If
PKGSRC_COMPILER requested it, assume that it's available, so that
compilation will (properly) fail if the hook program is somehow not
correctly installed.
2004-11-17 17:14:43 +00:00