summaryrefslogtreecommitdiff
path: root/mk/compiler.mk
AgeCommit message (Collapse)AuthorFilesLines
2004-05-09add mipspro-ucode to _COMPILERS which was missed the first time.grant1-2/+2
2004-05-08correctly preserve the user-specified order of pseudo-compilers. patchgrant1-6/+5
from jlam@.
2004-05-08_PKGSRC_COMPILER needs to contain the real compiler first, thengrant1-2/+2
pseudo-compilers such as ccache and distcc. fixes problem where lang/gcc{,3} would be incorrectly pulled in when it should not be.
2004-05-08implement {NOT,ONLY}_FOR_COMPILER so that packages can be marked asgrant1-5/+39
requiring a specific compiler (most often those which use gcc-specific hacks^wfeatures). this allows users to define PKGSRC_COMPILER to multiple real compilers in order to implement a compiler preference. for example, PKGSRC_COMPILER="sunpro gcc" will use sunpro as the default compiler, and fall back to gcc where a package is marked NOT_FOR_COMPILER=sunpro or ONLY_FOR_COMPILER=gcc.
2004-03-31Since revision 1.155 of bsd.prefs.mk, compiler.mk is required in packagesketch1-2/+2
Makefiles for testing CC_VERSION, not bsd.prefs.mk. Reflect that change in the provided example.
2004-02-18* Move pkgsrc/mk/compiler/bsd.compiler.mk to pkgsrc/mk/compiler.mk.jlam1-0/+115
Package Makefiles may now directly include compiler.mk. * Don't include compiler.mk within bsd.prefs.mk any longer. It was only included for the purposes of defining CC_VERSION. Packages that want to test the value of CC_VERSION should now first include "../../mk/compiler.mk". Any GCC_REQD statements in package Makefiles should be set before compiler.mk is included. * Simpllfy pkgsrc/mk/compiler/*.mk files as a result of not needing to be included indirectly by bsd.prefs.mk. We remove the special handling associated with detecting whether the file was included from within bsd.prefs.mk. These files are now much more straightforward to write and understand. * G/C the BSD_PREFS_MK stack mechanism as the only users (compiler/*) no longer need it. * Ensure that directories are prepended to the PATH only from within bsd.pkg.mk.
2004-02-01Garbage collect compiler.mk as it's superseded by the new compilerjlam1-272/+0
selection framework in pkgsrc/mk/compiler.
2003-12-10Ensure CPP is defined to use the Sun compiler when building packagessketch1-1/+2
under USE_SUNPRO, to avoid the possibility of picking up "cpp" from a local GCC installation.
2003-11-12backout previous, it is no longer needed.grant1-2/+2
2003-10-24Remove '-' from the version part of _GCC_IN_USE so that pkg_admin can dealcube1-2/+2
with the installed gcc when it has a localized version (such as our gcc-3.3.2-nb1).
2003-10-18move the libstdc++ fake libtool archive stuff out ofgrant1-14/+20
!defined(COMPILER_MK) for now. some packages include bsd.prefs.mk before defining USE_BUILDLINK2, which resulted in the libstdc++ fake-la target being missed. XXX the real fix is to include compiler.mk from both bsd.prefs.mk and XXX bsd.pkg.mk, and have compiler.mk make the right decisions based on XXX where it was included from.
2003-10-12fix logic error introduced in last, sync comments about CC_VERSIONgrant1-7/+8
with reality.
2003-10-11set CC_VERSION for non-gcc and use it in the BUILD_INFO file.grant1-4/+6
2003-10-11don't hardcode the -DHasGcc2... flags to imake, pass them only ifgrant1-1/+8
we're actually using gcc on Solaris. fixes building of imake PIC code when the compiler is not gcc.
2003-10-06allow lang/gcc{,3} to be used to build themselves by only adding thegrant1-24/+35
(build) dependency if the package being built is not the package which is providing the compiler.
2003-10-06avoid F77/PKG_FC being recursively defined.grant1-3/+3
reported by krister. XXX the Fortran gunk in bsd.pkg.mk will be moved to here later.
2003-09-28sync comments with reality.grant1-6/+20
note once again that USE_GCC2/USE_GCC3 must not be defined in package Makefiles. also note CC_VERSION and provide a usage example.
2003-09-28if /usr/lib/libstdc++.la exists, create the corresponding fake libtoolgrant1-1/+14
archive in ${BUILDLINK_DIR}/lib so packages can find and use it. fixes some build problems seen on Slackware Linux 9.
2003-09-27set CC and CXX defaults for SunPro when USE_SUNPRO is defined.grant1-1/+9
the path to cc and CC can be overridden in /etc/mk.conf or on the command line.
2003-09-24make CC_VERSION available to packages by including bsd.prefs.mk.grant1-3/+18
it is of the form 'gcc-<version>' if gcc is being used, or empty otherwise (for now). requested by tron.
2003-09-24remove redefine of _GCC_PREFIX, whitespace fix.grant1-4/+3
2003-09-23Work out _GCC_ARCHSUBDIR correctly, using the method fromgavan1-2/+10
lang/gcc3/buildlink2.mk
2003-09-21Test for egcs needs to come first, since egcs -v output alsowiz1-5/+5
contains "gcc". From Greg A. Woods in PR 22866.
2003-09-17explain why including this file in pkg Makefiles is useless.grant1-1/+4
2003-09-17honour GCC_REQD by testing $CC -v against it, and only pull in pkgsrcgrant1-9/+82
gcc if required. see the comments for how to use the variables which influence the decision. eliminate some spurious shell warnings while I'm here.
2003-09-12Sync comments with reality.salo1-6/+6
2003-09-12remove redundant comment about USE_GCC2 and USE_GCC3 until they aregrant1-5/+3
better handled.
2003-09-12move a SunPro tweak to compiler.mk.grant1-1/+10
2003-09-12tidy up handling of LDFLAGS wrt USE_GCC_SHLIB a little.grant1-5/+12
2003-09-12Typos/punctuation/caps.salo1-2/+2
2003-09-12start of improved compiler handling, mostly derived from the existinggrant1-0/+97
gcc buildlink2.mk files and splitting the non-buildlink2.mk bits out into compiler.mk. this allows USE_GCC2 and USE_GCC3 to work with non-buildlink2 packages again.