Description: Create a PIC version of libsuitesparse_config
 This will be embedded in the shared libraries which need it. Note that creating
 a separate shared library package for this would have been an overkill, since
 there is only one (small) source file.
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: not-needed
Last-Update: 2013-04-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/SuiteSparse_config/Makefile
+++ b/SuiteSparse_config/Makefile
@@ -8,7 +8,7 @@
 
 include SuiteSparse_config.mk
 
-ccode: libsuitesparseconfig.a
+ccode: libsuitesparseconfig.a libsuitesparseconfig_pic.a
 
 all: libsuitesparseconfig.a
 
@@ -20,6 +20,12 @@
 	$(RANLIB) libsuitesparseconfig.a
 	- $(RM) SuiteSparse_config.o
 
+libsuitesparseconfig_pic.a: SuiteSparse_config.c SuiteSparse_config.h
+	$(CC) $(CF) -fPIC -o SuiteSparse_config.oo -c SuiteSparse_config.c
+	$(ARCHIVE) libsuitesparseconfig_pic.a SuiteSparse_config.oo
+	$(RANLIB) libsuitesparseconfig_pic.a
+	- $(RM) SuiteSparse_config.oo
+
 distclean: purge
 
 purge: clean
