You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is there an option so that libgfortran.a and libquadmath.a can be staticly archived into libopenblas.a when running make? #2759
You could try adding -static-libgfortran to your compile flags, but there is no clean way to do the same for libquadmath. (You'd probably need to hack the makefiles to add libquadmath.a directly - there have been proposals and patches for gfortran to add a -static-libquadmath option but libquadmath appears to be under a less permissive license for historical reasons.)
If you can be sure that you will only ever use BLAS functions and no LAPACK, the easiest solution is to build with NOFORTRAN=1 or NO_LAPACK=1 as Fortran is only used in the LAPACK parts (which are mostly a direct copy of the "netlib"
reference implementation).
Activity
martin-frbg commentedon Aug 6, 2020
You could try adding
-static-libgfortranto your compile flags, but there is no clean way to do the same for libquadmath. (You'd probably need to hack the makefiles to add libquadmath.a directly - there have been proposals and patches for gfortran to add a -static-libquadmath option but libquadmath appears to be under a less permissive license for historical reasons.)If you can be sure that you will only ever use BLAS functions and no LAPACK, the easiest solution is to build with NOFORTRAN=1 or NO_LAPACK=1 as Fortran is only used in the LAPACK parts (which are mostly a direct copy of the "netlib"
reference implementation).