Commit graph

379 commits

Author SHA1 Message Date
joerg
bad8146eae cwrappers should get -Qunused-arguments too. 2014-12-03 14:05:25 +00:00
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
sbd
8a10fa5bbc Add CCACHE_COMPILERCHECK to the environment when using ccache. 2012-03-06 02:44:54 +00:00
hans
1ae50768d9 If gcc from pkgsrc is used, FCPATH might not be installed yet. Don't
force installation of yet another (different) fortran compiler in that
case.
2012-02-28 12:57:24 +00:00
hans
80eee18217 Update _GCC_DIST_VERSION to 4.6.2 2011-11-03 19:11:37 +00:00
wiz
f1eabc8f92 README.C not README.c, says veego who seems to be afraid to use his commit bit. 2011-10-30 23:11:33 +00:00
wiz
2ab0bae9c1 Check for /usr/var/README.c as well.
From Brian A Seklecki on pkgsrc-users.
2011-10-30 22:04:39 +00:00
markd
f959ec870b Fix setup of g95 as PKGSRC_FORTRAN for fortran77 packages. 2011-09-28 19:31:09 +00:00
abs
fc3bada41a Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -i
to santise environment
2011-09-08 20:17:15 +00:00
cheusov
aeb780bded Fix bootstrap on IRIX with mipspro compiler, for details
see PR 42424. I couldn't fix this problem using TOOLROOT variable.
2011-08-22 09:18:29 +00:00
wiz
1dde793f52 Update _GCC_DIST_VERSION to 4.6.1.
Noted by Jörn Clausen in PR 45256.
2011-08-18 10:01:31 +00:00
joerg
743f365cee If the clang-cpp alias exists, use it as default CPP in pkgsrc.
Default to f2c for Fortran, mirroring gcc.
Append -Qunused-arguments in the wrappers to unbreak many stupid
configure checks that get confused by the (also added) -L options.
2011-07-19 14:02:47 +00:00
wiz
8e46d850b7 Support gcc-4.5 and gcc-4.6. Some testing by Jörn Clausen. 2011-06-10 08:59:58 +00:00
alnsn
7bbbd19e60 Apply the patch from my own pkg/42480. 2011-05-19 22:37:55 +00:00
cheusov
d9c1df77e2 Fix bug in .include directive. This fixes mipspro support on IRIX.
Oked by wiz@
2011-05-08 10:37:54 +00:00
hans
679a72c1db Update to 4.4.5, fixes a build problem on OpenIndiana (and probably
Solaris 11 Express, too).

Changes 4.4.5:

The GNU project and the GCC developers are pleased to announce the
release of GCC 4.4.5.

This release is a bug-fix release, containing fixes for regressions in
GCC 4.4.4 relative to previous releases of GCC.
2011-02-25 13:34:56 +00:00
asau
442bd33a14 Remove possibly confusing variable assignment. 2010-12-26 14:23:47 +00:00
asau
b481152f18 Fortran is not Fortran-77 anymore. 2010-12-26 14:20:01 +00:00
asau
3c1c04ebf2 Break with the past: use g95 as default Fortran compiler.
Welcome to the modern world of computing.

This is known to break DragonFly at least,
either port g95 or fix lang/gcc44 to work on NetBSD.
Unless there're packages that still think that Fortran is F77,
this shouldn't affect anything.
2010-12-26 14:13:44 +00:00
asau
5a86ebf6b4 Don't make Fortran synonymous to Fortran-77, it isn't so already. 2010-12-26 14:09:01 +00:00
adam
6db39cd4b7 Enable Fortran via f2c 2010-12-26 09:46:24 +00:00
adam
f5f08621b8 Added COMPILER_ABI_FLAGs 2010-12-26 08:12:30 +00:00
adam
5365e9ea30 * Use LOCALBASE instead of PREFIX for PCC and Clang compiler detection
(otherwise Makefiles with mk/compiler.mk included fall back to GCC).
* Simplified compiler/clang.mk.
2010-11-03 18:05:05 +00:00
adam
37582ae22d Fix clang.mk; add C++ support 2010-10-21 13:55:13 +00:00
ahoka
5d1d297d1f Add support for clang. 2010-09-23 22:26:06 +00:00
asau
00e9b1c1b3 Implement "fortran77" as alias for "fortran". 2010-07-30 07:58:58 +00:00
adam
fb7b9246d1 Changes 4.4.4:
The [1]GNU project and the GCC developers are pleased to announce the
release of GCC 4.4.4.

This release is a bug-fix release, containing fixes for regressions in
GCC 4.4.3 relative to previous releases of GCC.
2010-05-06 10:21:17 +00:00
obache
ae306f0752 Remove tail of -* from _GCC_VERSION for _GCC_PKG.
With gcc2 on Haiku, it's 2.95.3-haiku-090629, confuse pmatch of pkg_admin.
2010-04-24 08:33:19 +00:00
adam
22e19de0c3 Changes 4.4.3:
The GNU project and the GCC developers are pleased to announce the
release of GCC 4.4.3.

This release is a bug-fix release, containing fixes for regressions in
GCC 4.4.1 relative to previous releases of GCC.
2010-03-15 08:27:06 +00:00
jmmv
bd1a430d87 Fix libtool under OS X: require a fixed version of f2c, and thus bump
PKGREVISION of libtool to 3 and require it as a dependency.
2009-12-20 12:32:55 +00:00
joerg
416f555206 Update to libtool-2.2.6b. This switches libtool to the new main branch.
Changes are many, important for pkgsrc:
- much higher speed (up to 30% faster for the overall build of libX11)
- less magic for detection of the tag

The pkgsrc integration of f2c has been changed to be more sane.
libtool itself now depends on the f2c frontend to use proper
auto-configuration and only fakes up the library. This part is
encapsulated in mk/compiler/f2c.mk.
2009-12-15 17:35:36 +00:00
asau
94a41871c6 Adjust to follow f2c/libf2c split: build-depend on f2c, buildlink libf2c. 2009-12-03 12:44:10 +00:00
sno
2460b781ce recognize compiler newer than 5.9, too 2009-10-25 17:15:44 +00:00
dmcmahill
4ee78bd0a3 Fix a typo, no idea why this didn't show up when I tested this before. 2009-09-18 11:38:23 +00:00
dmcmahill
071a693784 Teach this file about the lang/gcc44 package 2009-09-18 11:27:41 +00:00
tron
a9f24f37cf Add 32 bit and 64 ABI options for GCC under Mac OS X. 2009-09-12 21:42:27 +00:00
tnn
09e1becd63 break dependency loop between ccache and digest 2009-08-31 08:38:50 +00:00
rillig
75bc6127cb Did you know that the := operator behaves funnily? Example:
exclam	!= echo ${DEFINED_LATER:Q} value
colon	:= ${DEFINED_LATER} value

DEFINED_LATER = later

show:
	@echo ${exclam}
	@echo ${colon}

Don't expect them to be the same.
2009-07-28 06:55:24 +00:00
markd
8963e49faf Allow other fortran compilers than f2c to be used when gcc doesn't supply
one.

Now to use g95 as the fortran compiler just add
	PKGSRC_FORTRAN= g95
	FC= g95
to the mk.conf.
2009-07-08 21:25:30 +00:00
markd
1d907d5432 Add g95 support to the compiler framework, based on the existing f2c
support.
2009-07-08 21:17:16 +00:00
joerg
c46e99c7cd Learn from the AIX issues with hard links to symbolic links and always
create the compiler aliases with ln -fs.
2009-06-02 22:32:49 +00:00
joerg
7ce83aa384 Don't create hardlinks to symlinks, AIX freaks out with that. 2009-06-02 22:28:52 +00:00
joerg
9377afae3f Rename GCC_USE_SYMLINKS to COMPILER_USE_SYMLINKS, implement it for the
other compiler drivers and enable it by default. Saves at least a
percent of build time even for trivial packages like lang/lua.
2009-05-30 18:16:26 +00:00
rillig
c9a8d02e0d Added some keywords. 2009-05-12 05:44:02 +00:00
rillig
68148ee242 Documented the public variables of this file. 2009-03-17 21:28:10 +00:00
joerg
cb1ac20e13 Further refine AIX support. From Jens Rehsack. 2009-01-09 11:46:34 +00:00
joerg
e5d0951320 Fix misbalanced brackets as noticed by jnemeth. 2008-12-29 21:26:55 +00:00
joerg
709d52f492 Improve AIX/XLC support:
- provide cpp wrapper using cc -E
- provide c++_r wrapper working like c++
- provide -rpath handling for cc
- fix some debug messages to provide the correct script name
2008-12-29 16:53:06 +00:00
joerg
b5fd177ee1 Adjust xlc_r check to actually look for the right binary.
Prefer xlc_r over cc_r as authoritive name. Export CC_R.
From Jens Rehstack.
2008-11-27 17:56:52 +00:00
ahoka
f4426ff657 Don't try to build gcc2 on AMD64, as it's not supported by that compiler.
This issue was reported by Daniel Horecki.
2008-11-16 17:01:53 +00:00
joerg
07e7458998 Improve AIX/XLC support based on discussions with Jens Rehsack:
- Add cc_r/xlc_r wrapper using the same rules as xlc itself.
  It is used for example by Perl.
- Improve the RPATH emulation:
  - Always set -blibpath, use /usr/lib:/lib as default
  - If -blibpath is exlicitly given, add to the default
  - Additionally append any -Wl,-rpath given.
2008-11-14 14:04:12 +00:00
rillig
ec31b10111 Added the list of variables, so that "bmake show-all-gcc" shows all the
internals of this file.
2008-09-16 15:02:55 +00:00
sketch
a0c131c7aa Sun Studio 12 has a generic -m64 flag rather than individual -xarch targets. 2008-06-17 11:23:48 +00:00
obache
442d2697d6 Suppress automatical addition c to USE_LANGUAGES (ref. PR 34079)
if F2C does not really required.

Fixes problem mentioned in PR 38626.
2008-05-24 07:27:11 +00:00
rillig
3e67327748 Replaced _PKG_SILENT and _PKG_DEBUG with RUN.
XXX: Why do we have the exactly same code in all the files?
2008-02-07 20:59:05 +00:00
tnn
ddfd411544 Always tell the C++ compiler that we want support for ANSI C++ features
like namespace std enabled.
2008-01-15 10:08:18 +00:00
rhaen
9075c9986b Solaris SunPro Compiler 11/12 fails on Solaris 8/9 with -xc99. The header 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-11-30 16:55:28 +00:00
rillig
7a16551a71 Added the variable CCACHE_BASE, so that a ccache other than the one
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-16 09:33:29 +00:00
rillig
8832ece985 Added lots of XXX that should be cleaned up when the compiler framework
is rewritten the next time.
2007-10-05 22:09:09 +00:00
reed
edb3562456 For Portable C Compiler.
Add beginning of PKGSRC_COMPILER=pcc support.
Based on "sunpro".

Please help improve this. I have not tested with C++ or fortan.
2007-09-18 01:51:10 +00:00
joerg
1871076e0c At least with XLC V9, xlc -V isn't that useful as it prints the
man page. Use -qversion instead.
2007-08-30 21:47:29 +00:00
joerg
0094e01f2c Provide _COMPILER_RPATH_FLAG and _LINKER_RPATH_FLAG. This should work
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-15 21:26:28 +00:00
joerg
f24acb4a25 When calling gcc to extract the version number, pass down
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-11 17:31:22 +00:00
joerg
005620851f Add core of the infrastructure support for cross-compilation.
- 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-08-02 18:19:31 +00:00
martti
5867247b54 Remove trailing spaces. 2007-05-28 11:07:00 +00:00
sketch
aa1c561a73 Add C99 support, required for packages which use C99 such as devel/glib2 2007-05-23 08:42:36 +00:00
tnn
1a639746d4 fix botched $NetBSD$ 2007-04-17 11:09:28 +00:00
tnn
409fd2c40a add support for the HP-UX C/aC++ compilers 2007-04-17 11:05:33 +00:00
rillig
34cbf0da37 _COMPILER_LD_FLAG is only used in this file, and no other compiler file
defines this variable, so it doesn't hurt to remove it.
2007-03-15 22:33:42 +00:00
rillig
0bb5c89c69 Removed unused variables. Note that _ALIASES.* could only be removed
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-09 10:58:20 +00:00
rillig
137f973134 Removed the creation of the extra wrapper directory WRKDIR/.sunpro and
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-09 10:29:29 +00:00
rillig
a74015f852 Rewrote the file so that it is easier to see what needs to be done when
adding a language.
2007-03-09 09:59:21 +00:00
rillig
17d32cd56b Make the #error directive an error with MIPSpro. 2007-03-07 01:37:18 +00:00
rillig
f6a8043bf5 Replaced the deprecated PKG_SKIP_REASON with PKG_FAIL_REASON. 2007-02-10 08:59:07 +00:00
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