[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/5] configure: Remove unused CFLAGS definitions
From: |
Glenn Washburn |
Subject: |
[PATCH 4/5] configure: Remove unused CFLAGS definitions |
Date: |
Fri, 18 Mar 2022 01:41:38 -0500 |
These CFLAGS definitions are reset below them before they have a change to
affect anything. The exception is the *-emu case, which is put in the next
if block, which is the only place its used before getting reset.
Signed-off-by: Glenn Washburn <development@efficientek.com>
---
configure.ac | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/configure.ac b/configure.ac
index 0e50f9577b..17679b641d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1424,17 +1424,11 @@ fi
# Set them to their new values for the tests below.
CC="$TARGET_CC"
-if test x"$platform" = xemu ; then
-CFLAGS="$TARGET_CFLAGS -Wno-error"
-elif test "x$TARGET_APPLE_LINKER" = x1 ; then
-CFLAGS="$TARGET_CFLAGS -nostdlib -static -Wno-error"
-else
-CFLAGS="$TARGET_CFLAGS -nostdlib -Wno-error"
-fi
CPPFLAGS="$TARGET_CPPFLAGS"
# Check for libgcc symbols
if test x"$platform" = xemu; then
+CFLAGS="$TARGET_CFLAGS -Wno-error"
AC_CHECK_FUNCS(__udivsi3 __umodsi3 __divsi3 __modsi3 __divdi3 __moddi3
__udivdi3 __umoddi3 __ctzdi2 __ctzsi2 __clzdi2 __aeabi_uidiv __aeabi_uidivmod
__aeabi_idiv __aeabi_idivmod __aeabi_ulcmp __muldi3 __aeabi_lmul __aeabi_memcpy
__aeabi_memcpy4 __aeabi_memcpy8 __aeabi_memclr __aeabi_memclr4 __aeabi_memclr8
__aeabi_memset __aeabi_lasr __aeabi_llsl __aeabi_llsr _restgpr_14_x __ucmpdi2
__ashldi3 __ashrdi3 __lshrdi3 __bswapsi2 __bswapdi2 __bzero
__register_frame_info __deregister_frame_info ___chkstk_ms __chkstk_ms)
fi
--
2.27.0
- [PATCH 0/5] Configure cleanups and a fix, Glenn Washburn, 2022/03/18
- [PATCH 1/5] configure: Allow HOST_CC to override CC, Glenn Washburn, 2022/03/18
- [PATCH 2/5] configure: Sort AM_CONDITIONALs alphabetically, Glenn Washburn, 2022/03/18
- [PATCH 3/5] configure: Remove dead code, Glenn Washburn, 2022/03/18
- [PATCH 4/5] configure: Remove unused CFLAGS definitions,
Glenn Washburn <=
- [PATCH 5/5] configure: Whitespace changes to improve readability, Glenn Washburn, 2022/03/18
- Re: [PATCH 0/5] Configure cleanups and a fix, Daniel Kiper, 2022/03/24