Re: [RFC] Removal of Fortran from the base system
- From: Steve Kargl <sgk@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 29 May 2006 14:44:29 -0700
On Mon, May 29, 2006 at 03:36:44PM -0600, M. Warner Losh wrote:
In message: <20060527065621.GA4814@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Steve Kargl <sgk@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes:
: On Fri, May 26, 2006 at 11:49:43PM -0700, Maxim Sobolev wrote:
: > C'mon. Nothing in the base system requires fortran - install the
: > version you like from ports and enjoy the life. What's the problem?
: >
:
: The problems are the Cons points in my initial post.
: FreeBSD has always shipped a Fortran compiler. Stripping
: it out violates POLA. Additionally, the the Ports Collection
: currently assumes the availability of a Fortran compiler.
:
: What happens with
:
: cd /usr/ports/math/lapack
: make install
If the above just works with gfortran as a port, or in the base
system, what's the difference to the end user?
It doesin't work because the port maintainer has explicitly included
a LDADD+=-lg2c in the Makefile. Applying this patch to
math/lapack/script/configure and everything works fine with systems
that do not have /usr/bin/f77 and its runtime library.
troutmask:sgk[203] more conf.diff
--- configure.orig Sun May 28 14:38:00 2006
+++ configure Sun May 28 14:38:20 2006
@@ -1,9 +1,3 @@
-if [ ${OSVERSION} -lt 400012 ]; then
- LIBG2C=f2c
-else
- LIBG2C=g2c
-fi
-
cd $WRKSRC/SRC || exit 1
mv Makefile Makefile.old
@@ -11,8 +5,6 @@
LIB= lapack
SHLIB_MAJOR= 3
SHLIB_MINOR= 0
-
-LDADD= -l${LIBG2C}
END
cat >>Makefile <<'END'
--
Steve
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- References:
- Re: [RFC] Removal of Fortran from the base system
- From: marty fouts
- Re: [RFC] Removal of Fortran from the base system
- From: Maxim Sobolev
- Re: [RFC] Removal of Fortran from the base system
- From: Steve Kargl
- Re: [RFC] Removal of Fortran from the base system
- From: M. Warner Losh
- Re: [RFC] Removal of Fortran from the base system
- Prev by Date: Re: [RFC] Removal of Fortran from the base system
- Next by Date: Re: FreeBSD's embedded agenda
- Previous by thread: Re: [RFC] Removal of Fortran from the base system
- Next by thread: Re: [RFC] Removal of Fortran from the base system
- Index(es):
Relevant Pages
|