From c8d53236b1b27215e5a3ecf4dd6e0d92c2805c09 Mon Sep 17 00:00:00 2001
From: Rob Vermaas <rob.vermaas@gmail.com>
Date: Mon, 2 Aug 2010 12:55:54 +0000
Subject: [PATCH] svn path=/nixpkgs/trunk/; revision=22874

---
 .../libraries/suitesparse/disable-metis.patch | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/pkgs/development/libraries/suitesparse/disable-metis.patch b/pkgs/development/libraries/suitesparse/disable-metis.patch
index 32bb1d677fc0..68fd22bc6433 100644
--- a/pkgs/development/libraries/suitesparse/disable-metis.patch
+++ b/pkgs/development/libraries/suitesparse/disable-metis.patch
@@ -20,7 +20,24 @@ diff -Nrc SuiteSparse/UFconfig/Makefile SuiteSparse-new/UFconfig/Makefile
   
 diff -Nrc SuiteSparse/UFconfig/UFconfig.mk SuiteSparse-new/UFconfig/UFconfig.mk
 *** SuiteSparse/UFconfig/UFconfig.mk	2010-06-02 17:40:42.000000000 +0200
---- SuiteSparse-new/UFconfig/UFconfig.mk	2010-08-02 13:14:30.000000000 +0200
+--- SuiteSparse-new/UFconfig/UFconfig.mk	2010-08-02 14:55:27.000000000 +0200
+***************
+*** 34,40 ****
+  # performance.  You should select the optimization parameters that are best
+  # for your system.  On Linux, use "CFLAGS = -O3 -fexceptions" for example.
+  CC = cc
+! CFLAGS = -O3 -fexceptions
+  
+  # C++ compiler (also uses CFLAGS)
+  CPLUSPLUS = g++
+--- 34,40 ----
+  # performance.  You should select the optimization parameters that are best
+  # for your system.  On Linux, use "CFLAGS = -O3 -fexceptions" for example.
+  CC = cc
+! CFLAGS = -O3 -fexceptions -fPIC
+  
+  # C++ compiler (also uses CFLAGS)
+  CPLUSPLUS = g++
 ***************
 *** 71,78 ****
   # MAKE = gmake