]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use PETSc convenience library also on OS X after all when we are using static libs...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 Aug 2007 22:44:27 +0000 (22:44 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 Aug 2007 22:44:27 +0000 (22:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@15042 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/Make.global_options.in

index 2fcf003f237bd22468b0f71de7b6a63d9993d8ab..60ad870d0e919f5d5b314e325ab18016bd17f6bb 100644 (file)
@@ -117,7 +117,7 @@ lib-deal2-3d.g = $(LIBDIR)/libdeal_II_3d.g$(lib-suffix)
 #
 # 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.
+# have to list all of them, at least if we are using shared libs.
 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)
@@ -129,8 +129,13 @@ 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))
+  ifeq ($(enable-shared),yes)
+    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))
+  else
+    lib-contrib-petsc.g = $(LIBDIR)/libpetscall.g$(lib-suffix)
+    lib-contrib-petsc.o = $(LIBDIR)/libpetscall$(lib-suffix)
+  endif
 endif  
 
 

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.