FS#75893 - makepkg.conf does not contain fortran compiler flags

Attached to Project: Pacman
Opened by Cassandra Watergate (saltedcoffii) - Monday, 12 September 2022, 18:20 GMT
Last edited by Allan McRae (Allan) - Sunday, 04 December 2022, 10:43 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:



In `/etc/makepkg.conf`, we specify `CFLAGS` and `CXXFLAGS`. We should also be specifying `FFLAGS` (flags to be passed to a fortran 77 compiler) and `FCFLAGS` (flags to be passed to a 9x compiler). Not specifying these is causing C and C++ source code to be optimized to Arch Linux specifications, while Fortran code is being compiled as by default. Further documentation on this can be found in sections 8.14 and 8.15 in the automake documentation: https://www.gnu.org/software/automake/manual/automake.pdf.

I would suggest:

...
CXXFLAGS="..."
FCFLAGS="$CFLAGS"
FFLAGS="$CFLAGS"
LDFLAGS="..."
...

Additional info:
* pacman 6.0.1
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 04 December 2022, 10:43 GMT
Reason for closing:  None
Additional comments about closing:  Moved to gitlab:
https://gitlab.archlinux.org/pacman/pacm an/-/issues/3

Loading...