This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2 of 2] complibs: introduce a two-stage select


# HG changeset patch
# User "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
# Date 1286140287 -7200
# Node ID 656d9d225e9855794c32210c60bd4c45cd042b0d
# Parent  fd7c1ef7a71b68a7ff9c85810c33bd9c10349ac7
complibs: introduce a two-stage select

Directly select-ing the required companion libraries means we can not
disable them. That's OK for now, as we systematically build them when
they are required.

But with distros coming up-to-speed, we will need to disable the build
later-on.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

diff --git a/config/cc/gcc.in b/config/cc/gcc.in
--- a/config/cc/gcc.in
+++ b/config/cc/gcc.in
@@ -156,24 +156,24 @@
 config CC_GCC_USE_GMP_MPFR
     bool
     default n
-    select GMP
-    select MPFR
+    select GMP_NEEDED
+    select MPFR_NEEDED
 
 config CC_GCC_USE_PPL_CLOOG
     bool
     default n
-    select PPL
-    select CLOOG
+    select PPL_NEEDED
+    select CLOOG_NEEDED
 
 config CC_GCC_USE_MPC
     bool
     default n
-    select MPC
+    select MPC_NEEDED
 
 config CC_GCC_USE_LIBELF
     bool
     default n
-    select LIBELF
+    select LIBELF_NEEDED
 
 config CC_VERSION
     string
diff --git a/config/companion_libs.in b/config/companion_libs.in
--- a/config/companion_libs.in
+++ b/config/companion_libs.in
@@ -4,6 +4,46 @@
 
 menu "Companion libraries"
 
+config COMPLIBS_NEEDED
+    bool
+    default n
+
+config GMP_NEEDED
+    bool
+    default n
+    select GMP
+    select COMPLIBS_NEEDED
+
+config MPFR_NEEDED
+    bool
+    default n
+    select MPFR
+    select COMPLIBS_NEEDED
+
+config PPL_NEEDED
+    bool
+    default n
+    select PPL
+    select COMPLIBS_NEEDED
+
+config CLOOG_NEEDED
+    bool
+    default n
+    select CLOOG
+    select COMPLIBS_NEEDED
+
+config MPC_NEEDED
+    bool
+    default n
+    select MPC
+    select COMPLIBS_NEEDED
+
+config LIBELF_NEEDED
+    bool
+    default n
+    select LIBELF
+    select COMPLIBS_NEEDED
+
 config COMPLIBS
     bool
     default n



--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]