Commit graph

278 commits

Author SHA1 Message Date
ryoon
147cedb460 Fix GCC49 pattern.
From richard@, thank you.
2014-11-03 13:06:39 +00:00
ryoon
e470b7e219 Restore monolithic gcc48 and gcc48-libs.
* No objection on tech-pkg@ mailing list.
2014-10-31 14:22:20 +00:00
jperkin
a4c97eaf1e Improve comments around USE_PKGSRC_GCC and GCC_REQD. 2014-09-06 08:32:55 +00:00
jperkin
c564162241 Fix lang/gcc49 dependency logic, based on lang/gcc47. 2014-09-05 22:11:10 +00:00
jperkin
ec9f1b3b4a Add infrastructure support for lang/gcc49 and lang/gcc49-libs 2014-09-04 18:52:53 +00:00
ryoon
04a675fa78 Make lang/g95 as default Fortran compiler under NetBSD current (GCC 4.8)
lang/g95 is built with NetBSD current's GCC 4.8.3. Thank you, asau@.
2014-06-09 23:29:31 +00:00
ryoon
ed64542340 Fix error under recent NetBSD current (GCC 4.8.3). 2014-06-01 09:58:13 +00:00
ryoon
962c5fe02c Set gcc48-* compilers, and gcc48-fortaran as default Fortran compiler for
recent gcc 4.8.3 NetBSD current. lang/g95 is not built for such NeBSD.
2014-06-01 08:14:27 +00:00
ryoon
1add1d06fe Remove lang/gfortran 2014-06-01 08:11:57 +00:00
ryoon
f44eb82239 Support per language gcc48 packages 2014-04-22 20:49:38 +00:00
ryoon
b81777457a Add compiler support code for lang/gfortran Fortan 95/2003/2008 compiler
from GCC.
2014-04-05 23:57:08 +00:00
fhajny
faee6b0cb8 Make sure FC is set for g77/gfortran. Fixes runtime Fortran in math/R et al. 2014-02-04 12:11:57 +00:00
obache
e8e0733c16 Set Interix bultin gcc specific patths to COMPILER_{INCLUDE,LIB}_DIRS. 2013-11-23 08:55:28 +00:00
adam
40a19cff11 Construct CC_VERSION differenty; fix for Xcode where clang reports itself as Apple LLVM 2013-07-31 06:37:27 +00:00
jperkin
81408545ce Match against CC_VERSION rather than _GCC_VERSION, the latter is not defined
in the USE_PKGSRC_GCC case.
2013-07-09 10:13:43 +00:00
wiz
17eeef4b7b fix typo in comment. 2013-06-15 22:32:18 +00:00
asau
e72b2acc5d "fortran88" is unknown, make it "fortran77". 2013-06-15 21:52:11 +00:00
asau
f089014607 Stop advertising "fortran" support by GCC before 4.4
("fortran" denotes post-Fortran-77 dialects).
2013-06-15 21:50:43 +00:00
joerg
95bce4ce35 Do not switch Fortran compiler depending on the language requirement of
the package. For f2c, all Fortran 95+ programs are broken and it is
generally not possible to mix output from different Fortran compilers.
Default to g95 for now as fallback compiler.
2013-06-15 19:06:31 +00:00
jperkin
dca5f03664 Add USE_PKGSRC_GCC_RUNTIME support for gcc 4.8 and fix dependencies for
gcc packages.  Bail out if runtime support is requested but we do not
provide runtime libraries for the chosen compiler.
2013-06-13 10:45:46 +00:00
joerg
f9c20e8f17 No trailing comma after -R 2013-05-29 13:19:02 +00:00
joerg
7b69413290 Use -R as LINKER_RPATH_FLAG like GCC. The patches for lang/gcc47 and
lang/gcc48 don't work otherwise.
2013-05-22 12:13:35 +00:00
riastradh
9e0c502480 Split BUILD_DEPENDS into TOOL_DEPENDS and BUILD_DEPENDS in mk/.
Build depends are target packages that are needed at build-time for,
e.g., static libraries to link against, header files to include, &c.
Tool depends are native packages that are needed at build-time for,
e.g., compilers/linkers/&c. to run.

ok agc
2013-05-09 23:37:25 +00:00
joerg
33f8f94997 Use g95 as default Fortran compiler. Would be nice to use more modern
GCC, but that requires cleaning up mk/compiler/gcc.mk first.

Only include the fortran compiler file, if Fortran is actually
requested.
2013-05-09 14:01:08 +00:00
sbd
4277eba05d Use so magic to set _GCC_DIST_VERSION. 2013-04-20 07:36:17 +00:00
adam
6df113d1c2 Renaming GCC_DIST_VERSION to GCC48_DIST_VERSION 2013-04-19 16:34:46 +00:00
adam
7ceb1dbb45 Enable usage of gcc-4.8 as PKGSRC_COMPILER 2013-04-17 09:48:30 +00:00
tez
dfb16e5d15 The newer versions of solaris studio compilers install by default into
/opt/solstudioNN.N rather than /opt/SUNWspro so look there too.
2013-04-06 18:09:43 +00:00
wiz
9588132c19 I think this might fix gcc47-libs.
XXX: Proper infrastructure support for gcc48 might need more work.
2013-04-02 22:24:03 +00:00
wiz
46efd90122 Add support for gcc48. From Kai-Uwe Eckhardt <kuehro@gmx.de>. 2013-04-01 21:06:57 +00:00
wiz
3f0e2dddc5 Fix two typos. 2013-04-01 19:07:40 +00:00
wiz
06ed9834e1 clang -dumpversion prints 4.2.1, which is not the intended content
of CC_VERSION.
Use clang --version | sed to get a more usable string.
2013-02-21 07:57:19 +00:00
markd
7c521e30e7 When using g95 as fortran compiler make sure FC is set correctly. 2012-12-15 21:23:31 +00:00
marino
b37304e0ba compiler.mk, gcc.mk: Implement DRAGONFLY_CCVER
DragonFly has two compilers in base, GCC 4.4.7 and GCC 4.7.2.
The way one switches between them for userland programs is to set
CCVER in the environment.

However, to set this via make.conf is tricky.  I've been using the
low level "ALL_ENV+= CCVER=gcc47", but this trick fails to properly
identify the compiler which results in _GCC_VERSION being incorrectly
defined.

Additionally, there are some prominent packages that do not build on
gcc 4.7 and the fix is either not fully understood or would require a
large amount of work to implement.  In these cases, it is desireable
to specify the package be built on gcc 4.4 regardless of CCVER setting.

To address these issues, a new directive is added: DRAGONFLY_CCVER.
It is only effective if OPSYS equals "DragonFly", and it will properly
set CCVER and properly define _GCC_VERSION.  It will also allow a
per package specification of a particular compiler in the pkg makefile.
2012-12-12 20:49:01 +00:00
obache
93b4795ffa check defined(_USE_GCC_SHLIB) before using it. 2012-09-17 04:43:56 +00:00
jperkin
61364a6e9d Document USE_PKGSRC_GCC_RUNTIME and provide a default setting.
Introduce USE_GCC_RUNTIME for packages which build shared libraries, but
do not use libtool to do so, and add logic to always define _USE_GCC_SHLIB
on Solaris if either USE_LIBTOOL or USE_GCC_RUNTIME are defined.  On Solaris,
a non-GNU linker is always used, so this correctly adds a dependency upon the
gcc runtime for those packages.
2012-09-16 12:18:30 +00:00
sbd
0cb4a4465b Add dependency on GCC libraries if requested.
Code by Jonathan Perkin.
2012-09-16 07:31:18 +00:00
sbd
5a39b2214b Move the setting of _USE_GCC_SHLIB=yes on SunOS from the gcc buildlink3 to
mk/compiler/gcc.mk
2012-09-13 10:17:14 +00:00
jperkin
f76501015a Ensure LC_ALL=C is set when determining the gcc version. Add a comment
explaining why we currently have to hardcode 'env' rather than use SETENV
or PKGSRC_SETENV.
2012-07-27 10:34:00 +00:00
jperkin
2c6899b6f7 Add new GCCBASE variable, useful on systems which install gcc outside of
the normal $PATH.
2012-07-13 16:11:29 +00:00
sbd
ce564f2a20 Set default values for _NEED_GCC47 and _NEED_GCC_AUX. 2012-07-09 07:42:17 +00:00
marino
1a21fb3999 compiler.mk/gcc.mk: Add support for USE_LANGUAGES+= ada
All recent packages featuring Ada code have a hard dependency on the
lang/gnat-aux compiler package.  The valid values for USE_LANGUAGES
are c, c99, c++, fortran, fortran77, java, objc, so specifying a
specific compiler was necessary up into now.

One problem with lang/gnat-aux is that it is installed at ${LOCALBASE}
where the lang/gccXX compilers are installed at ${LOCALBASE}/gccXX.
The latter compilers have no possibility of sharing conflicting files
unlike lang/gnat-aux.  Rather than fundamentally update the GCC 4.6-based
lang/gnat-aux to avoid these conflicts, a new Ada-capable compiler
based on GCC 4.7 was created with the intent of being supported by
mk/compiler.mk and mk/compiler/gcc.mk.

The Ada packages will be effectively migrated from lang/gnat-aux to the
new lang/gcc-aux compiler, but lang/gcc-aux will remain as a standalone
package as it is the only GCC 4.6-based compiler that builds on
DragonFly and serves it as a world and kernel compile option.

In addition to the current language wrappers, lang/gcc-aux adds
wrappers for "ada" (unique to gcc-aux, hardlinked to gcc driver),
and the gnat, gnatmake, gnatbind, gnatlink, gnatchop, gnatprep,
and gnatls programs.  Supporting all of these allows the wrapper
system to be used with Ada packages; currently wrappers are mostly
disabled on them.

The lang/gcc47 implicitly adds support for the "objc-c++" language by
adding it to the USE_LANGUAGES list, but it wasn't really supported.
An attempt was made to better support objc-c++, but this new enumeration
probably still needs work or needs to be removed completely.

Logic for Ada support:
1) All lang/gccXX compilers have version numbers ranging from 2.8.1 to 9.
2) lang/gcc-aux uses the release date as its version number in the form of
   YYYYMMDD with a minimum value of 20120614, so there is no version
   overlap.
3) When at least one element of USE_LANGUAGES is "ada", the value of
   20120614 is added to the set of GCC_REQD which selects lang/gcc-aux.
4) The _NEED_NEWER_GCC check is disabled.  It fails and isn't relevant;
   unless a package sets GCC_REQD over 20120614, the only way to select
   lang/gcc-aux is to specify the Ada language and only one compiler
   known to gcc.mk can support it.
2012-07-08 19:57:10 +00:00
jperkin
9ce215dfc2 Solaris needs -m32 for ABI=32 too, now that we have compilers which build
64-bit by default.
2012-06-26 15:48:53 +00:00
hans
552b4a7216 If unset, set PKGSRC_FORTRAN accordingly if g77 or gfortran exist. 2012-04-25 16:28:18 +00:00
sbd
9ff7c81faf Add _COMPILER_ABI_FLAG.XX for gcc on Linux. 2012-04-24 07:44:11 +00:00
sbd
20dc1bb8fe Add support for gcc-4.7 2012-04-16 05:03:03 +00:00
sbd
e3fd6d777e Make sure that gcc47 JAVA_WRAPPERS don't break the _GCC_SUBPREFIX detection. 2012-04-16 05:00:44 +00:00
sbd
a3a8f22dec Move USE_PKGSRC_GCC from compler.mk to compler/gcc.mk and make it a yes/no
check.

At the same time cleanup GCC_REQD.
2012-04-13 03:03:36 +00:00
sbd
dea4253c04 Inorder to use a native gcc there must be a builtin gcc. 2012-04-13 02:30:45 +00:00
hans
7e1efc0a82 Highest version of gcc in pkgsrc is now 4.6.3 2012-03-06 11:39:55 +00:00