]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work aroung another annoying fact of Mac OS X...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Aug 2007 23:35:57 +0000 (23:35 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Aug 2007 23:35:57 +0000 (23:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@15036 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/Make.global_options.in

index 11995708590e32a5ca4b1d700a196883c0c6911b..2fcf003f237bd22468b0f71de7b6a63d9993d8ab 100644 (file)
@@ -114,6 +114,10 @@ lib-deal2-3d.g = $(LIBDIR)/libdeal_II_3d.g$(lib-suffix)
 # twiddle with whatever is necessary to link in PETSc.
 #
 # to make things more fun, the whole scheme was changed in petsc 2.3.0
+#
+# also sort of annoying is the fact that on Mac OS X, the trick with the
+# one library doesn't appear to work. Instead of a single library, we therefore
+# have to list all of them.
 ifeq ($(DEAL_II_PETSC_VERSION_MINOR),2)
   lib-contrib-petsc-path.g = $(DEAL_II_PETSC_DIR)/lib/libg_c++/$(DEAL_II_PETSC_ARCH)
   lib-contrib-petsc-path.o = $(DEAL_II_PETSC_DIR)/lib/libO_c++/$(DEAL_II_PETSC_ARCH)
@@ -121,8 +125,14 @@ else
   lib-contrib-petsc-path.g = $(DEAL_II_PETSC_DIR)/lib/$(DEAL_II_PETSC_ARCH)
   lib-contrib-petsc-path.o = $(DEAL_II_PETSC_DIR)/lib/$(DEAL_II_PETSC_ARCH)
 endif
-lib-contrib-petsc.g = $(LIBDIR)/libpetscall.g$(lib-suffix)
-lib-contrib-petsc.o = $(LIBDIR)/libpetscall$(lib-suffix)
+ifeq ($(findstring darwin,$(TARGET)),)
+  lib-contrib-petsc.g = $(LIBDIR)/libpetscall.g$(lib-suffix)
+  lib-contrib-petsc.o = $(LIBDIR)/libpetscall$(lib-suffix)
+else
+  lib-contrib-petsc.g = $(shell echo $(DEAL_II_PETSC_DIR)/lib/$(DEAL_II_PETSC_ARCH)/*$(lib-suffix))
+  lib-contrib-petsc.o = $(shell echo $(DEAL_II_PETSC_DIR)/lib/$(DEAL_II_PETSC_ARCH)/*$(lib-suffix))
+endif  
+
 
 # same for metis, except that there is only one library in that case
 lib-contrib-metis = $(DEAL_II_METIS_DIR)/libmetis.a

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.