2021-10-25 09:34:02 +02:00
|
|
|
|
(define-module (glicid packages gcc)
|
2021-10-25 09:14:58 +02:00
|
|
|
|
#:use-module (guix packages)
|
2022-05-10 10:00:46 +02:00
|
|
|
|
#:use-module (gnu packages commencement) ;; for make-gcc-toolchain
|
|
|
|
|
#:use-module (gnu packages gcc) ;; for gcc-11
|
2021-10-25 09:14:58 +02:00
|
|
|
|
)
|
|
|
|
|
|
2022-05-10 10:00:46 +02:00
|
|
|
|
;; beware : access to internal functions… this is probably not the right way to do it …
|
2021-10-25 09:14:58 +02:00
|
|
|
|
|
2022-05-10 10:00:46 +02:00
|
|
|
|
(define custom-gcc (@@ (gnu packages gcc) custom-gcc) )
|
|
|
|
|
(define %generic-search-paths (@@ (gnu packages gcc) %generic-search-paths ))
|
2021-10-25 09:14:58 +02:00
|
|
|
|
|
2022-05-10 10:00:46 +02:00
|
|
|
|
;;
|
2021-10-25 09:14:58 +02:00
|
|
|
|
|
2022-05-10 10:00:46 +02:00
|
|
|
|
(define-public gfortran-11
|
2021-10-25 09:14:58 +02:00
|
|
|
|
(hidden-package
|
2022-05-10 10:00:46 +02:00
|
|
|
|
(custom-gcc gcc-11 "gfortran" '("fortran")
|
|
|
|
|
%generic-search-paths
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
)
|
2021-10-25 09:14:58 +02:00
|
|
|
|
|
|
|
|
|
(define-public gfortran-toolchain-11
|
2022-05-10 10:00:46 +02:00
|
|
|
|
(package
|
|
|
|
|
(inherit (make-gcc-toolchain gfortran-11))
|
|
|
|
|
(synopsis "Complete GCC tool chain for fortran lang development")
|
2021-10-25 09:14:58 +02:00
|
|
|
|
(description "This package provides a complete GCC tool chain for
|
2022-05-10 10:00:46 +02:00
|
|
|
|
fortran lang development to be installed in user profiles. This includes
|
|
|
|
|
fortran, as well as libc (headers and binaries, plus debugging symbols
|
|
|
|
|
in the @code{debug} output), and binutils."
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
)
|