]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
avoid that library functions are replaced instead of creating a brand new library
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Aug 2012 12:21:51 +0000 (12:21 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Aug 2012 12:21:51 +0000 (12:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@26004 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/Makefile

index 937036e0b78231972be5d9e409d3b819210cdc20..649dd724e87bbe23e623fd4f72ece829fdf53551 100644 (file)
@@ -154,11 +154,13 @@ endif
 # rules for static libraries
 $(LIBDIR)/libdeal_II.g$(static-lib-suffix): $(go-files) $(extra-g.o-files)
        @echo "=====deal.II==========debug======$(MT)== Linking library:   $(@F)"
-       @$(AR) ru $@ $(go-files) $(extra-g.o-files)
+       @rm $@
+       @$(AR) r $@ $(go-files) $(extra-g.o-files)
        @$(RANLIB) $@
 $(LIBDIR)/libdeal_II$(static-lib-suffix): $(o-files) $(extra-o-files)
        @echo "=====deal.II==========optimized==$(MT)== Linking library:   $(@F)"
-       @$(AR) ru $@ $(o-files) $(extra-o-files)
+       @rm $@
+       @$(AR) r $@ $(o-files) $(extra-o-files)
        @$(RANLIB) $@
 
 
@@ -170,7 +172,7 @@ $(LIBDIR)/libdeal_II$(static-lib-suffix): $(o-files) $(extra-o-files)
 # them to their final location
 $(LIBDIR)/libdeal_II.g$(shared-lib-suffix): $(go-files) $(extra-g.o-files)
        @echo "=====deal.II==========debug======$(MT)== Linking library:   $(@F)"
-       @rm -f $@
+       @rm -f $@ $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II.g)
        @WORKFILE=`mktemp $${TMPDIR:-/tmp}/tmp.XXXXXXXXXX` && \
                $(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $$WORKFILE $(call DEAL_II_ADD_SONAME,deal_II.g) $(go-files) $(extra-g.o-files) $(deplibs.g) && \
                mv $$WORKFILE $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II.g)
@@ -178,7 +180,7 @@ $(LIBDIR)/libdeal_II.g$(shared-lib-suffix): $(go-files) $(extra-g.o-files)
 
 $(LIBDIR)/libdeal_II$(shared-lib-suffix): $(o-files) $(extra-o-files)
        @echo "=====deal.II==========optimized==$(MT)== Linking library:   $(@F)"
-       @rm -f $@
+       @rm -f $@ $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II.g)
        @WORKFILE=`mktemp $${TMPDIR:-/tmp}/tmp.XXXXXXXXXX` && \
                $(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $$WORKFILE $(call DEAL_II_ADD_SONAME,deal_II) $(o-files) $(extra-o-files) $(deplibs.o) && \
                mv $$WORKFILE $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II)

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.