[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gfortran FFLAGS without paths?



Thomas Weber <thomas.weber.mail@gmail.com> writes:

> a) possible without crude hacks?

Depends on what you consider to be a crude hack. ;-)  AFAICT,
debian/rules already has a hook for overriding FLIBS, so hard-coding

fc_libs = "-lhdf5 -lz -lgfortranbegin -lgfortran -lm"

should have the desired effect, although it may need occasional tuning
for newer gfortran versions.  Alternatively, you could arrange to pass
the value through sed -e 's/-L[^ ]* //g' at some stage.

> b) sensible?

Yes, given that the relevant paths are already the default anyway;
Octave's build system is just being paranoid, resulting in fragility.

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu


Reply to: