From 7634d307128bb2b9b2f453a3a45fc2d854985e67 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 23 Aug 2007 23:35:57 +0000 Subject: [PATCH] Work aroung another annoying fact of Mac OS X... git-svn-id: https://svn.dealii.org/trunk@15036 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/common/Make.global_options.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/deal.II/common/Make.global_options.in b/deal.II/common/Make.global_options.in index 1199570859..2fcf003f23 100644 --- a/deal.II/common/Make.global_options.in +++ b/deal.II/common/Make.global_options.in @@ -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 -- 2.39.5