7c68e43eed
Obvious additions: 1) Upgrades sync from gcc 4.6.1-RELEASE to gcc 4.6.2-RELEASE 2) New capability of building Fortran 3) New capability of building Objective-C 4) Building of all 5 languages (Ada,C,C++,ObjC,Fortran) now default 5) Fortran testsuite added 6) ObjC testsuite added Behind the scenes: 1) Previously GNAT-Aux was built from a custom-built tarball. Now real real gcc source files are used instead, but heavily patched. 2) The standard patch mechanism is not used. Composite diff files are generated by dragonlace.net and they are applied as needed, and are located in the "files" directory 3) This might be the only gcc that doesn't use the monolithic source tar ball. Depending on the options selected, the makefile updates its distfile list and only downloads what it needs, including testsuite files and dejagnu support. 4) All platforms are now built with unlimited stacksize command due to new issues with <platform>-stdint.h functionality. 5) All platforms use unlimited stacksize for Ada testing. Before it was limited to NetBSD x86_64. This may have introduced a failure on NetBSD i386 though. There were no other impacts according to the Ada testsuite results. 6) The PLIST automatic generation was significantly simplified, resulting in some variable deletion. 7) libstdc++ can't break testing now (forced to evaluate to true) 8) Unnecessary depends and USE_TOOLS removed 9) The includes-fixed directory is now removed from all platforms, arches now rather than problematic ones. It seems that it can only make no difference or cause problems, so no reason to keep it around. A) Unnecessary do-config phase "touches" removed. B) Several fixes added to diff patches to improve testsuite results on c, c++, and fortran for all platforms.
84 lines
1.8 KiB
Makefile
84 lines
1.8 KiB
Makefile
# $NetBSD: options.mk,v 1.2 2012/01/08 11:17:07 marino Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.gnat-aux
|
|
PKG_SUPPORTED_OPTIONS= ada cxx fortran objc
|
|
PKG_SUPPORTED_OPTIONS+= testada testcxx testfortran testobjc testgcc
|
|
PKG_SUGGESTED_OPTIONS= ada cxx fortran objc
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
#########################
|
|
## ADD LANGUAGE: Ada ##
|
|
#########################
|
|
|
|
.if !empty(PKG_OPTIONS:Mada)
|
|
LANGS+= ada
|
|
DISTFILES+= gcc-ada-${GCC_VERSION}.tar.bz2
|
|
APPLY_DIFFS+= ada
|
|
.endif
|
|
|
|
|
|
#########################
|
|
## ADD LANGUAGE: C++ ##
|
|
#########################
|
|
|
|
.if !empty(PKG_OPTIONS:Mcxx)
|
|
LANGS+= c++
|
|
DISTFILES+= gcc-g++-${GCC_VERSION}.tar.bz2
|
|
APPLY_DIFFS+= cxx
|
|
.endif
|
|
|
|
|
|
#############################
|
|
## ADD LANGUAGE: Fortran ##
|
|
#############################
|
|
|
|
.if empty(PKG_OPTIONS:Mfortran)
|
|
QUADOPT= --disable-libquadmath
|
|
.else
|
|
LANGS+= fortran
|
|
DISTFILES+= gcc-fortran-${GCC_VERSION}.tar.bz2
|
|
APPLY_DIFFS+= fortran
|
|
.if ${OPSYS} == "NetBSD"
|
|
QUADOPT= --disable-libquadmath
|
|
.else
|
|
QUADOPT= --enable-libquadmath
|
|
.endif
|
|
.endif
|
|
|
|
|
|
#################################
|
|
## ADD LANGUAGE: Objective-C ##
|
|
#################################
|
|
|
|
.if !empty(PKG_OPTIONS:Mobjc)
|
|
LANGS+= objc
|
|
DISTFILES+= gcc-objc-${GCC_VERSION}.tar.bz2
|
|
.endif
|
|
|
|
|
|
#########################
|
|
## TESTSUITE SUPPORT ##
|
|
#########################
|
|
|
|
.if !empty(PKG_OPTIONS:Mtestada) \
|
|
|| !empty(PKG_OPTIONS:Mtestcxx) \
|
|
|| !empty(PKG_OPTIONS:Mtestfortran) \
|
|
|| !empty(PKG_OPTIONS:Mtestobjc) \
|
|
|| !empty(PKG_OPTIONS:Mtestgcc)
|
|
BUILD_DEPENDS+= dejagnu>=1.4:../../devel/dejagnu
|
|
DISTFILES+= gcc-testsuite-${GCC_VERSION}.tar.bz2
|
|
.if !empty(PKG_OPTIONS:Mtestada)
|
|
APPLY_DIFFS+= ada-testsuite
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mtestcxx)
|
|
APPLY_DIFFS+= cxx-testsuite
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mtestgcc)
|
|
APPLY_DIFFS+= gcc-testsuite
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mtestfortran)
|
|
APPLY_DIFFS+= fortran-testsuite
|
|
.endif
|
|
.endif
|