]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use LDFLAGS to link libraries, rather than CXXFLAGS.o or .g
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 23 May 2001 08:09:42 +0000 (08:09 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 23 May 2001 08:09:42 +0000 (08:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@4708 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/Makefile
deal.II/deal.II/Makefile
deal.II/doc/news/2001/c-3-1.html
deal.II/lac/Makefile

index e9773774d9fd7d0519097023c93755cff186853b..b4702bc7d000f22475329b6443915b079b987b60 100644 (file)
@@ -88,11 +88,11 @@ $(LIBDIR)/libbase.g.a: $(forward-declarations) $(go-files)
 
 $(LIBDIR)/libbase.so: $(forward-declarations) $(o-files)
        @echo =====base=============optimized==$(MT)== Linking library:   $(@F)
-       @$(CC) $(CXXFLAGS.o) -shared -o $@ $(o-files)
+       @$(CC) $(LDFLAGS) -shared -o $@ $(o-files)
 
 $(LIBDIR)/libbase.g.so: $(forward-declarations) $(go-files)
        @echo =====base=============debug======$(MT)== Linking library:   $(@F)
-       @$(CC) $(CXXFLAGS.g) -shared -o $@ $(go-files)
+       @$(CC) $(LDFLAGS) -shared -o $@ $(go-files)
 
 
 
index 4ceae7e5ab2317a79a5d3636140dd3c4dba192b8..b4c7e99b67689c0f49c46931319b7d9a60d9fcd1 100644 (file)
@@ -118,29 +118,29 @@ $(LIBDIR)/libdeal_II_3d.a: $(o-files-3d)
 
 $(LIBDIR)/libdeal_II_1d.g.so: $(go-files-1d)
        @echo =====deal.II====1d====debug======$(MT)== Linking library:   $(@F)
-       @$(CC) $(CXXFLAGS.o) -shared -o $@ $(go-files-1d)
+       @$(CC) $(LDFLAGS) -shared -o $@ $(go-files-1d)
 
 $(LIBDIR)/libdeal_II_1d.so: $(o-files-1d)
        @echo =====deal.II====1d====optimized==$(MT)== Linking library:   $(@F)
-       @$(CC) $(CXXFLAGS.o) -shared -o $@ $(o-files-1d)
+       @$(CC) $(LDFLAGS) -shared -o $@ $(o-files-1d)
 
 
 $(LIBDIR)/libdeal_II_2d.g.so: $(go-files-2d)
        @echo =====deal.II====2d====debug======$(MT)== Linking library:   $(@F)
-       @$(CC) $(CXXFLAGS.o) -shared -o $@ $(go-files-2d)
+       @$(CC) $(LDFLAGS) -shared -o $@ $(go-files-2d)
 
 $(LIBDIR)/libdeal_II_2d.so: $(o-files-2d)
        @echo =====deal.II====2d====optimized==$(MT)== Linking library:   $(@F)
-       @$(CC) $(CXXFLAGS.o) -shared -o $@ $(o-files-2d)
+       @$(CC) $(LDFLAGS) -shared -o $@ $(o-files-2d)
 
 
 $(LIBDIR)/libdeal_II_3d.g.so: $(go-files-3d)
        @echo =====deal.II====3d====debug======$(MT)== Linking library:   $(@F)
-       @$(CC) $(CXXFLAGS.o) -shared -o $@ $(go-files-3d)
+       @$(CC) $(LDFLAGS) -shared -o $@ $(go-files-3d)
 
 $(LIBDIR)/libdeal_II_3d.so: $(o-files-3d)
        @echo =====deal.II====3d====optimized==$(MT)== Linking library:   $(@F)
-       @$(CC) $(CXXFLAGS.o) -shared -o $@ $(o-files-3d)
+       @$(CC) $(LDFLAGS) -shared -o $@ $(o-files-3d)
 
 
 
index ffaeba49acb04c1c37ce9a9a67fbf560e914393f..4c8d7e74443f7ae81f985a0825d9437999baae37 100644 (file)
@@ -27,12 +27,20 @@ documentation, etc</a>.
 
 <ol>
   <li> <p>
-       Change: If in multithreaded mode, the ACE library is now
+       Changed: The libraries are no more linked using the C++
+       compilation flags, but rather using LDFLAGS. Some compilers
+       object to compilation flags on the linker line.
+       <br>
+       (WB 2001/05/23)
+       </p>
+
+  <li> <p>
+       Changed: If in multithreaded mode, the ACE library is now
        automatically added to the <code>$(LIBS)</code> Makefile
        variable. There is no need anymore for a special clause in your
        Makefile.
        <br>
-       (WB 2001/05/22)
+       (WB 2001/05/23)
        </p>
 
   <li> <p>
index aaa2fc90b0ebf4c8aa7cf8183edd2a5fabe974e5..e48913b8b93821c37c6164e92e88089be396575a 100644 (file)
@@ -60,11 +60,11 @@ $(LIBDIR)/liblac.g.a: $(forward-declarations) $(go-files)
 
 $(LIBDIR)/liblac.so: $(forward-declarations) $(o-files)
        @echo =====lac==============optimized==$(MT)== Linking library:   $(@F)
-       @$(CC) $(CXXFLAGS.o) -shared -o $@ $(o-files)
+       @$(CC) $(LDFLAGS) -shared -o $@ $(o-files)
 
 $(LIBDIR)/liblac.g.so: $(forward-declarations) $(go-files)
        @echo =====lac==============debug======$(MT)== Linking library:   $(@F)
-       @$(CC) $(CXXFLAGS.g) -shared -o $@ $(go-files)
+       @$(CC) $(LDFLAGS) -shared -o $@ $(go-files)
 
 
 

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.