Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-29 10:10:36 +0300
committerMike Frysinger <vapier@gentoo.org>2024-01-20 06:23:47 +0300
commit7ba23b682540f2f8999bd1cf8421bdeca6f59ca4 (patch)
treee5869a70e0bce547381c5ab96e627eee6c0f75a6 /libgloss/configure
parent9b35bf859aeb32d9a11815d683e5cde2053bc420 (diff)
libgloss: merge sparc_leon into top-level Makefile
Avoid a recursive make to speed things up a bit. A sparc-elf build shows installed objects & libs produce same code.
Diffstat (limited to 'libgloss/configure')
-rwxr-xr-xlibgloss/configure19
1 files changed, 15 insertions, 4 deletions
diff --git a/libgloss/configure b/libgloss/configure
index 66a740f26..b969cd1e3 100755
--- a/libgloss/configure
+++ b/libgloss/configure
@@ -660,6 +660,8 @@ CONFIG_VISIUM_FALSE
CONFIG_VISIUM_TRUE
CONFIG_V850_FALSE
CONFIG_V850_TRUE
+CONFIG_SPARC_LEON_FALSE
+CONFIG_SPARC_LEON_TRUE
CONFIG_SPARC_FALSE
CONFIG_SPARC_TRUE
CONFIG_RX_FALSE
@@ -2852,9 +2854,7 @@ case "${target}" in
config_i960=true
;;
sparc-*leon*-elf* | sparc-*leon*-none*)
- ac_config_files="$ac_config_files sparc_leon/Makefile"
-
- subdirs="$subdirs sparc_leon"
+ config_sparc_leon=true
;;
sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
config_sparc=true
@@ -3229,6 +3229,14 @@ else
CONFIG_SPARC_FALSE=
fi
+ if test x$config_sparc_leon = xtrue; then
+ CONFIG_SPARC_LEON_TRUE=
+ CONFIG_SPARC_LEON_FALSE='#'
+else
+ CONFIG_SPARC_LEON_TRUE='#'
+ CONFIG_SPARC_LEON_FALSE=
+fi
+
if test x$config_v850 = xtrue; then
CONFIG_V850_TRUE=
CONFIG_V850_FALSE='#'
@@ -5873,6 +5881,10 @@ if test -z "${CONFIG_SPARC_TRUE}" && test -z "${CONFIG_SPARC_FALSE}"; then
as_fn_error $? "conditional \"CONFIG_SPARC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${CONFIG_SPARC_LEON_TRUE}" && test -z "${CONFIG_SPARC_LEON_FALSE}"; then
+ as_fn_error $? "conditional \"CONFIG_SPARC_LEON\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${CONFIG_V850_TRUE}" && test -z "${CONFIG_V850_FALSE}"; then
as_fn_error $? "conditional \"CONFIG_V850\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -6556,7 +6568,6 @@ do
"m68hc11/Makefile") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile" ;;
"m68k/Makefile") CONFIG_FILES="$CONFIG_FILES m68k/Makefile" ;;
"pa/Makefile") CONFIG_FILES="$CONFIG_FILES pa/Makefile" ;;
- "sparc_leon/Makefile") CONFIG_FILES="$CONFIG_FILES sparc_leon/Makefile" ;;
"mips/Makefile") CONFIG_FILES="$CONFIG_FILES mips/Makefile" ;;
"rs6000/Makefile") CONFIG_FILES="$CONFIG_FILES rs6000/Makefile" ;;
"cr16/Makefile") CONFIG_FILES="$CONFIG_FILES cr16/Makefile" ;;