Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib only build libgmp, libmpfr and libmpc when (MKGCC != no)...



details:   https://anonhg.NetBSD.org/src/rev/f728f1ff6bab
branches:  trunk
changeset: 768568:f728f1ff6bab
user:      plunky <plunky%NetBSD.org@localhost>
date:      Sat Aug 20 22:16:56 2011 +0000

description:
only build libgmp, libmpfr and libmpc when (MKGCC != no) and
they can be together since only the .a is built, with no
other dependencies

diffstat:

 lib/Makefile |  17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diffs (48 lines):

diff -r cb7dce1cca77 -r f728f1ff6bab lib/Makefile
--- a/lib/Makefile      Sat Aug 20 21:35:32 2011 +0000
+++ b/lib/Makefile      Sat Aug 20 22:16:56 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.173 2011/07/21 03:13:30 mrg Exp $
+#      $NetBSD: Makefile,v 1.174 2011/08/20 22:16:56 plunky Exp $
 #      from: @(#)Makefile      5.25.1.1 (Berkeley) 5/7/91
 
 .include <bsd.own.mk>
@@ -76,12 +76,13 @@
 . else
 SUBDIR+=       ../external/gpl3/gcc/lib/libobjc
 . endif
-.endif
-
+. if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
 # specific build area, but we get better parallelism this way.
-.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
 SUBDIR+=       ../external/lgpl3/gmp/lib/libgmp
+SUBDIR+=       ../external/lgpl3/mpfr/lib/libmpfr
+SUBDIR+=       ../external/lgpl2/mpc/lib/libmpc
+. endif
 .endif
 
 #
@@ -133,10 +134,6 @@
 . endif
 .endif
 
-.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
-SUBDIR+=       ../external/lgpl3/mpfr/lib/libmpfr
-.endif
-
 #==================== 2nd library dependency barrier ====================
 SUBDIR+=       .WAIT
 
@@ -165,10 +162,6 @@
 
 SUBDIR+=       librumphijack
 
-.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
-SUBDIR+=       ../external/lgpl2/mpc/lib/libmpc
-.endif
-
 #==================== 3rd library dependency barrier ====================
 SUBDIR+=       .WAIT
 



Home | Main Index | Thread Index | Old Index