-diff -ur CHOLMOD/Lib/Makefile CHOLMOD.shared/Lib/Makefile
---- CHOLMOD/Lib/Makefile 2007-12-07 12:29:51.000000000 +0100
-+++ CHOLMOD.shared/Lib/Makefile 2007-12-07 12:29:12.000000000 +0100
-@@ -10,14 +10,14 @@
-
- C = $(CC) $(CFLAGS) $(CHOLMOD_CONFIG)
+--- CHOLMOD/Lib/Makefile.orig 2012-01-01 17:10:50.673295114 +0100
++++ CHOLMOD/Lib/Makefile 2012-01-01 17:16:30.863306505 +0100
+@@ -11,12 +11,14 @@
+ #-------------------------------------------------------------------------------
+ # the optional Partition module requires METIS, CAMD, and CCOLAMD
+ I_WITH_PARTITION =
++LIB_WITH_PARTITION =
+ CONFIG =
+ ifeq (,$(findstring -DNPARTITION, $(CHOLMOD_CONFIG)))
+ # METIS is check if METIS is available
+ ifeq ($(WITH_METIS), 1)
+ I_WITH_PARTITION = -I/usr/include/metis \
+ -I/usr/include/ccolamd -I/usr/include/camd
++ LIB_WITH_PARTITION = $(METIS) -lccolamd -lcamd
+ else
+ # METIS is not available, but CHOLMOD_CONFIG does not specify
+ # -DNPARTITION. Add it here so we can still compile CHOLMOD.
+@@ -31,14 +33,14 @@
+
+ C = $(CC) $(CF) $(CHOLMOD_CONFIG) $(CONFIG)