1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/math/lapack/files/patch-make.inc.gfortran
Brendan Fabeny 841bb20c30 Respect LDFLAGS; add ELF DT_NEEDED tags to shared libraries;
use one toolchain consistently; minor cleanups; update to 3.2.2

PR:		117923
Approved by:	maho (maintainer), makc (co-mentor)
2010-08-30 07:31:34 +00:00

52 lines
1.5 KiB
Plaintext

--- INSTALL/make.inc.gfortran.orig 2009-04-16 14:10:16.000000000 -0400
+++ INSTALL/make.inc.gfortran 2010-08-29 10:41:02.000000000 -0400
@@ -8,7 +8,6 @@
#
# The machine (platform) identifier to append to the library names
#
-PLAT = _LINUX
#
# Modify the FORTRAN and OPTS definitions to refer to the
# compiler and desired compiler options for your machine. NOOPT
@@ -16,12 +15,12 @@
# selected. Define LOADER and LOADOPTS to refer to the loader and
# desired load options for your machine.
#
-FORTRAN = gfortran
-OPTS = -O2
+FORTRAN = %%F77%%
+OPTS = %%FFLAGS%% %%EXTRAFLAGS%%
DRVOPTS = $(OPTS)
-NOOPT = -O0
-LOADER = gfortran
-LOADOPTS =
+NOOPT = -O0 %%EXTRAFLAGS%%
+LOADER = %%F77%%
+LOADOPTS = %%LDFLAGS%% %%EXTRAFLAGS%%
#
# Timer for the SECOND and DSECND routines
#
@@ -40,9 +39,8 @@
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
-ARCH = ar
ARCHFLAGS= cr
-RANLIB = ranlib
+RANLIB = %%RANLIB%%
#
# Location of the extended-precision BLAS (XBLAS) Fortran library
# used for building and testing extended-precision routines. The
@@ -57,8 +55,8 @@
# machine-specific, optimized BLAS library should be used whenever
# possible.)
#
-BLASLIB = ../../blas$(PLAT).a
-LAPACKLIB = lapack$(PLAT).a
-TMGLIB = tmglib$(PLAT).a
+BLASLIB = %%BLAS%%
+LAPACKLIB = liblapack$(PLAT).a
+TMGLIB = libtmglib$(PLAT).a
EIGSRCLIB = eigsrc$(PLAT).a
LINSRCLIB = linsrc$(PLAT).a