summaryrefslogtreecommitdiff
path: root/mk/compiler
AgeCommit message (Collapse)AuthorFilesLines
2014-06-09Make lang/g95 as default Fortran compiler under NetBSD current (GCC 4.8)ryoon1-8/+1
lang/g95 is built with NetBSD current's GCC 4.8.3. Thank you, asau@.
2014-06-01Fix error under recent NetBSD current (GCC 4.8.3).ryoon2-2/+120
2014-06-01Set gcc48-* compilers, and gcc48-fortaran as default Fortran compiler forryoon1-28/+33
recent gcc 4.8.3 NetBSD current. lang/g95 is not built for such NeBSD.
2014-06-01Remove lang/gfortranryoon1-117/+0
2014-04-22Support per language gcc48 packagesryoon1-14/+30
2014-04-05Add compiler support code for lang/gfortran Fortan 95/2003/2008 compilerryoon1-0/+117
from GCC.
2014-02-04Make sure FC is set for g77/gfortran. Fixes runtime Fortran in math/R et al.fhajny1-1/+3
2013-11-23Set Interix bultin gcc specific patths to COMPILER_{INCLUDE,LIB}_DIRS.obache1-1/+6
2013-07-31Construct CC_VERSION differenty; fix for Xcode where clang reports itself as ↵adam1-2/+2
Apple LLVM
2013-07-09Match against CC_VERSION rather than _GCC_VERSION, the latter is not definedjperkin1-3/+3
in the USE_PKGSRC_GCC case.
2013-06-15fix typo in comment.wiz1-2/+2
2013-06-15"fortran88" is unknown, make it "fortran77".asau1-2/+2
2013-06-15Stop advertising "fortran" support by GCC before 4.4asau1-7/+5
("fortran" denotes post-Fortran-77 dialects).
2013-06-15Do not switch Fortran compiler depending on the language requirement ofjoerg1-8/+4
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-13Add USE_PKGSRC_GCC_RUNTIME support for gcc 4.8 and fix dependencies forjperkin1-3/+9
gcc packages. Bail out if runtime support is requested but we do not provide runtime libraries for the chosen compiler.
2013-05-29No trailing comma after -Rjoerg1-2/+2
2013-05-22Use -R as LINKER_RPATH_FLAG like GCC. The patches for lang/gcc47 andjoerg1-2/+2
lang/gcc48 don't work otherwise.
2013-05-09Split BUILD_DEPENDS into TOOL_DEPENDS and BUILD_DEPENDS in mk/.riastradh5-12/+12
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-09Use g95 as default Fortran compiler. Would be nice to use more modernjoerg1-3/+3
GCC, but that requires cleaning up mk/compiler/gcc.mk first. Only include the fortran compiler file, if Fortran is actually requested.
2013-04-20Use so magic to set _GCC_DIST_VERSION.sbd1-3/+4
2013-04-19Renaming GCC_DIST_VERSION to GCC48_DIST_VERSIONadam1-2/+2
2013-04-17Enable usage of gcc-4.8 as PKGSRC_COMPILERadam1-3/+2
2013-04-06The newer versions of solaris studio compilers install by default intotez1-1/+4
/opt/solstudioNN.N rather than /opt/SUNWspro so look there too.
2013-04-02I think this might fix gcc47-libs.wiz1-2/+2
XXX: Proper infrastructure support for gcc48 might need more work.
2013-04-01Add support for gcc48. From Kai-Uwe Eckhardt <kuehro@gmx.de>.wiz1-6/+39
2013-04-01Fix two typos.wiz1-3/+3
2013-02-21clang -dumpversion prints 4.2.1, which is not the intended contentwiz1-2/+2
of CC_VERSION. Use clang --version | sed to get a more usable string.
2012-12-15When using g95 as fortran compiler make sure FC is set correctly.markd1-1/+2
2012-12-12compiler.mk, gcc.mk: Implement DRAGONFLY_CCVERmarino1-1/+3
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-09-17check defined(_USE_GCC_SHLIB) before using it.obache1-2/+2
2012-09-16Document USE_PKGSRC_GCC_RUNTIME and provide a default setting.jperkin1-5/+23
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-16Add dependency on GCC libraries if requested.sbd1-1/+9
Code by Jonathan Perkin.
2012-09-13Move the setting of _USE_GCC_SHLIB=yes on SunOS from the gcc buildlink3 tosbd1-1/+8
mk/compiler/gcc.mk
2012-07-27Ensure LC_ALL=C is set when determining the gcc version. Add a commentjperkin1-11/+8
explaining why we currently have to hardcode 'env' rather than use SETENV or PKGSRC_SETENV.
2012-07-13Add new GCCBASE variable, useful on systems which install gcc outside ofjperkin1-2/+9
the normal $PATH.
2012-07-09Set default values for _NEED_GCC47 and _NEED_GCC_AUX.sbd1-1/+3
2012-07-08compiler.mk/gcc.mk: Add support for USE_LANGUAGES+= adamarino1-2/+85
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-06-26Solaris needs -m32 for ABI=32 too, now that we have compilers which buildjperkin1-11/+2
64-bit by default.
2012-04-25If unset, set PKGSRC_FORTRAN accordingly if g77 or gfortran exist.hans1-1/+3
2012-04-24Add _COMPILER_ABI_FLAG.XX for gcc on Linux.sbd1-1/+6
2012-04-16Add support for gcc-4.7sbd1-6/+39
2012-04-16Make sure that gcc47 JAVA_WRAPPERS don't break the _GCC_SUBPREFIX detection.sbd1-1/+2
2012-04-13Move USE_PKGSRC_GCC from compler.mk to compler/gcc.mk and make it a yes/nosbd1-2/+18
check. At the same time cleanup GCC_REQD.
2012-04-13Inorder to use a native gcc there must be a builtin gcc.sbd1-2/+2
2012-03-06Highest version of gcc in pkgsrc is now 4.6.3hans1-2/+2
2012-03-06Add CCACHE_COMPILERCHECK to the environment when using ccache.sbd1-2/+2
2012-02-28If gcc from pkgsrc is used, FCPATH might not be installed yet. Don'thans1-2/+2
force installation of yet another (different) fortran compiler in that case.
2011-11-03Update _GCC_DIST_VERSION to 4.6.2hans1-2/+2
2011-10-30README.C not README.c, says veego who seems to be afraid to use his commit bit.wiz1-2/+2
2011-10-30Check for /usr/var/README.c as well.wiz1-2/+2
From Brian A Seklecki on pkgsrc-users.