some existing COMPILER lines with arch restrictions etc. In the usual
case this is now using "COMPILER = base-clang ports-gcc base-gcc" on
ports with c++ libraries in WANTLIB.
This is basically intended to be a noop on architectures using clang
as the system compiler, but help with other architectures where we
currently have many ports knocked out due to building with an unsuitable
compiler -
- some ports require c++11/newer so the GCC version in base that is used
on these archirtectures is too old.
- some ports have conflicts where an executable is built with one compiler
(e.g. gcc from base) but a library dependency is built with a different
one (e.g. gcc from ports), resulted in mixing incompatible libraries in the
same address space.
devel/gmp is intentionally skipped as it's on the path to building gcc -
the c++ library there is unused in ports (and not built by default upstream)
so intending to disable building gmpcxx in a future commit.
libpgmath CMakeLists.txt files. This worked out to -mcpu=native on the
arm64 package builders, which clang doesn't support. Remove all those flags
which should get flang building again on arm64.
Found looking at phessler@'s arm64 bulk build report.
update also brings in an MD version of libpgmath for arm64 (like it is on
amd64); however, this arm64 MD version is currently disabled until I am
able to test it.
Bumping REVISION for libpgmath and flang (but not driver). Mostly because
of a PLIST sync, but also because the build did change: includes a patch to
stop clang from silently passing off some of the build work to base gcc
(which obviously failed on arm64).
improvements, 2 of our patches were upstreamed, so they go away. Also, put
-lflang into the default linked libraries so that you do not need to
remember to add the -L/usr/local/lib -lflang dance to every Fortran program
you want to link. The compiler does it for you now. A simple
flang myprog.f
will do the right thing.
ok rsadowski@
This is divided into two sub-ports, driver which is a modified clang that
provides the flang command, and flang which provides the compiler passes.
Executing 'pkg_add flang' will get you everything you need.