aboutsummaryrefslogtreecommitdiff
path: root/libgloss/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-29 00:33:05 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-29 21:07:08 -0500
commita84860f4882c4d3c743c66a4861b5213799e6405 (patch)
treef091da1d299faa54aea910754e8f79843d013136 /libgloss/configure
parent98230b7db1bab77e5fce817ed8c81dd7c577372c (diff)
downloadnewlib-a84860f4882c4d3c743c66a4861b5213799e6405.zip
newlib-a84860f4882c4d3c743c66a4861b5213799e6405.tar.gz
newlib-a84860f4882c4d3c743c66a4861b5213799e6405.tar.bz2
libgloss: sparc: add missing m4 include
Commit 8d758283785042589e95c93d7899cecf28ef00ea ("libgloss: merge sparc configure script up a level") missed including the sparc acinclude.m4 file which meant none of the sparc-specific vars were propagating to the sub-makefile.
Diffstat (limited to 'libgloss/configure')
-rwxr-xr-xlibgloss/configure20
1 files changed, 20 insertions, 0 deletions
diff --git a/libgloss/configure b/libgloss/configure
index 28b4528..5f6bc58 100755
--- a/libgloss/configure
+++ b/libgloss/configure
@@ -596,6 +596,8 @@ HAVE_XTENSA_BOARD_ESP32S3_TRUE
HAVE_XTENSA_BOARD_ESP32_FALSE
HAVE_XTENSA_BOARD_ESP32_TRUE
XTENSA_BOARD_ESP
+SPARC_CYGMONLDSCRIPTTEMPL
+SPARC_CPU
MOXIE_BUILD_CRT0_FALSE
MOXIE_BUILD_CRT0_TRUE
MN10300_BSP_LIST
@@ -5108,6 +5110,23 @@ esac
+SPARC_CPU=SPARC
+case ${target_cpu} in
+sparclite*) SPARC_CPU=SLITE ;;
+sparclet*) SPARC_CPU=SPLET ;;
+sparc64*) SPARC_CPU=SPARC64 ;;
+sparc86x*) SPARC_CPU=SLITE ;;
+esac
+
+
+SPARC_CYGMONLDSCRIPTTEMPL=cygmon.ld.src
+case ${target_cpu} in
+sparc64*) SPARC_CYGMONLDSCRIPTTEMPL=cygmon-sparc64-ld.src ;;
+sparclet-*-aout*) SPARC_CYGMONLDSCRIPTTEMPL=cygmon.ld.src; ac_config_files="$ac_config_files sparc/libsys/Makefile"
+ ;;
+esac
+
+
XTENSA_BOARD_ESP=`echo $CC | sed 's/.*-mdynconfig=xtensa_\(.*\)\.so.*/\1/;s/.*-mcpu=\(^ *\).*/\1/;s/.* .*/unknown/'`
if test x$XTENSA_BOARD_ESP = xesp32; then
@@ -6069,6 +6088,7 @@ do
"or1k/Makefile") CONFIG_FILES="$CONFIG_FILES or1k/Makefile" ;;
"pru/Makefile") CONFIG_FILES="$CONFIG_FILES pru/Makefile" ;;
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+ "sparc/libsys/Makefile") CONFIG_FILES="$CONFIG_FILES sparc/libsys/Makefile" ;;
"default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
"default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;