Group :: Sciences/Mathematics
RPM: libsuitesparse-devel
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: pic.patch
Download
Download
CSparse/Lib/Makefile | 2 +-
CXSparse/Lib/Makefile | 2 +-
CXSparse_newfiles/Lib/Makefile | 2 +-
UFconfig/UFconfig.mk | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/CSparse/Lib/Makefile b/CSparse/Lib/Makefile
index 435e15f..e9fec76 100644
--- a/CSparse/Lib/Makefile
+++ b/CSparse/Lib/Makefile
@@ -1,6 +1,6 @@
# Modify the "-O" optimization option for best performance (-O3 on Linux):
CC = cc
-CFLAGS = -O -I../Include
+CFLAGS = -O -I../Include -fPIC
AR = ar cr
RANLIB = ranlib
diff --git a/CXSparse/Lib/Makefile b/CXSparse/Lib/Makefile
index c937956..165c3d2 100644
--- a/CXSparse/Lib/Makefile
+++ b/CXSparse/Lib/Makefile
@@ -1,6 +1,6 @@
# Modify the "-O" optimization option for best performance (-O3 on Linux):
CC = cc
-CFLAGS = -O
+CFLAGS = -O -fPIC
I = -I../../UFconfig -I../Include
AR = ar cr
diff --git a/CXSparse_newfiles/Lib/Makefile b/CXSparse_newfiles/Lib/Makefile
index c937956..165c3d2 100644
--- a/CXSparse_newfiles/Lib/Makefile
+++ b/CXSparse_newfiles/Lib/Makefile
@@ -1,6 +1,6 @@
# Modify the "-O" optimization option for best performance (-O3 on Linux):
CC = cc
-CFLAGS = -O
+CFLAGS = -O -fPIC
I = -I../../UFconfig -I../Include
AR = ar cr
diff --git a/UFconfig/UFconfig.mk b/UFconfig/UFconfig.mk
index 5f4f8e2..670c3b4 100644
--- a/UFconfig/UFconfig.mk
+++ b/UFconfig/UFconfig.mk
@@ -33,7 +33,7 @@
# performance. You should select the optimization parameters that are best
# for your system. On Linux, use "CFLAGS = -O3 -fexceptions" for example.
CC = cc
-CFLAGS = -O
+CFLAGS = -O -fPIC
# ranlib, and ar, for generating libraries
RANLIB = ranlib
@@ -184,7 +184,7 @@ CHOLMOD_CONFIG =
# Using default compilers:
# CC = gcc
-CFLAGS = -O3
+CFLAGS = -O3 -fPIC
# alternatives:
# CFLAGS = -g -fexceptions \