mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 12:26:27 -04:00
gettimeofday() in order to solve problems with the construction of shared libraries [1] ; configure only once; build only those (dynamically-linked) executables that will be installed; set USE_LDCONFIG; remove an unnecessary patch; don't mix toolchains; make flags more uniform and remove obsolete flags; add test targets PR: 159189 [1] Submitted by: stephen (different version) [1]
38 lines
875 B
Makefile
38 lines
875 B
Makefile
--- config/FreeBSD.mk.orig 2003-08-28 11:13:38.000000000 -0400
|
|
+++ config/FreeBSD.mk 2012-07-10 07:43:24.000000000 -0400
|
|
@@ -9,30 +9,24 @@
|
|
DEFFLG=-D
|
|
|
|
FC ?= f77
|
|
-FFLAGS += -Os -fno-second-underscore
|
|
+FFLAGS += $(PICFLAG)
|
|
FOUTFLG =-o
|
|
|
|
#CC = cc
|
|
-CFLAGS += -Os -D_POSIX_C_SOURCE=199506L -fPIC
|
|
+CFLAGS += $(PICFLAG)
|
|
COUTFLG = -o
|
|
|
|
-LD = $(CC)
|
|
-LDFLAGS = $(CFLAGS) -static
|
|
+LD = $(FC)
|
|
+LDFLAGS := -L$(DIRLIB) -L./ $(LDFLAGS)
|
|
LOUTFLG = $(COUTFLG)
|
|
|
|
-AR = ar cr
|
|
+AR += cr
|
|
#AOUTFLG =
|
|
|
|
-RANLIB = ranlib
|
|
RM = rm -rf
|
|
|
|
-LIBBLAS = -L/usr/local/lib -lf77blas -lcblas -latlas -lg2c
|
|
-LIBLAPACK = -L/usr/local/lib -llapack
|
|
|
|
-LIBMETIS = -L/usr/local/lib -lmetis
|
|
|
|
-LIBF77 = -lg2c
|
|
#compat is required for ftime()
|
|
-LIBC = -lm -lcompat
|
|
|
|
#########################################################
|