1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-14 07:49:16 -04:00
ports/math/superlu/files/patch-make.inc
Maho Nakata 2d9be844d8 Better handling of shared lib.
PR:	166703
Submitted by:	Oliver Hartmann <ohartman@zedat.fu-berlin.de>
2012-04-25 07:09:18 +00:00

42 lines
1.1 KiB
HTML

--- make.inc.orig 2006-01-02 00:52:00.000000000 +0100
+++ make.inc 2012-04-11 09:50:17.000000000 +0200
@@ -19,22 +19,25 @@
#
TMGLIB = libtmglib.a
SUPERLULIB = libsuperlu_3.0.a
-BLASLIB = ../libblas.a
+SUPERLULIB_SHARED = libsuperlu_3.0.so
+BLASLIB = -L/usr/local/lib -lblas
#
# The archiver and the flag(s) to use when building archive (library)
# If your system has no ranlib, set RANLIB = echo.
#
-ARCH = ar
+ARCMD = ar
ARCHFLAGS = cr
RANLIB = ranlib
-CC = cc
-CFLAGS = -xO3 -xcg92
-FORTRAN = f77
-FFLAGS = -O
-LOADER = cc
-LOADOPTS = -xO3
+#CC ?= gcc46
+#CFLAGS ?= -O3 -pipe -fno-strict-aliasing -march=native -Wl,-rpath=/usr/local/lib/gcc46
+#FORTRAN ?= gfortran46
+#FFLAGS ?= -O -Wl,-rpath=/usr/local/lib/gcc46
+#LOADER ?= gfortran46
+#LOADOPTS =
+
+CFLAGS += -Wall -fpic
#
# C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase)
@@ -43,4 +46,4 @@
#
# The directory in which Matlab is installed
#
-MATLAB = /usr/sww/pkg/matlab
+#MATLAB = /usr/sww/pkg/matlab