do not hard-code CPU target based on uname (Closes: #1009622).
authorSteve Langasek <steve.langasek@ubuntu.com>
Thu, 20 Mar 2025 14:15:29 +0000 (15:15 +0100)
committerDaniel Baumann <daniel@debian.org>
Thu, 20 Mar 2025 14:15:29 +0000 (15:15 +0100)
The compiler in Debian correctly targets the right ISA for the
architecture.  Hard-coding this can result in misbuilds depending on the
build machine.  Also, armv7-a is the wrong target for armhf now, it should
be armv7-a+fp.

Gbp-Pq: Topic debian
Gbp-Pq: Name 0001-ftbfs-armhf.patch

configure

index eb6719bab87f701a5606b682f88472d5441edf7a..6b5d2b3d00c9495cfbb74efe86c708dba8b1a08d 100755 (executable)
--- a/configure
+++ b/configure
@@ -515,14 +515,6 @@ case $PLATFORM in
                ENVIRONMENT=64
                ;;
        arm|armv6|armv6l|armv7|armv7l)
-               case "$PLATFORM" in
-                       "armv6"|"armv6l")
-                               CFLAGS="$CFLAGS -march=armv6k";
-                               ;;
-                       "armv7"|"armv7l")
-                               CFLAGS="$CFLAGS -march=armv7-a";
-                               ;;
-               esac
                RTM_ENABLE="CK_MD_RTM_DISABLE"
                LSE_ENABLE="CK_MD_LSE_DISABLE"
                MM="${MM:-"CK_MD_RMO"}"