From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Alex Myczko <tar@debian.org>
Date: Mar, 01 2026 19:36:08 +0000
Subject: [PATCH] <short summary of the patch>

TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.

Bug-Debian: https://bugs.debian.org/1129329
Bug-Debian: https://bugs.debian.org/1129330
---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-<Vendor>: <vendor-bugtracker-url>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>

--- sc-membench-1.2.1.orig/Makefile
+++ sc-membench-1.2.1/Makefile
@@ -49,12 +49,12 @@ ifeq ($(UNAME_S),Darwin)
     ARCH := $(shell uname -m)
     ifeq ($(ARCH),arm64)
         # ARM64 macOS: Use generic ARMv8-A (works on all Apple Silicon)
-        CFLAGS_ARCH = -mcpu=generic
+#        CFLAGS_ARCH = -mcpu=generic
         CFLAGS_PATHS = -I/opt/homebrew/include
         LDFLAGS_PATHS = -L/opt/homebrew/lib
     else
         # x86_64 macOS: Use baseline x86-64 (works on all Intel Macs)
-        CFLAGS_ARCH = -march=x86-64 -mtune=generic
+#        CFLAGS_ARCH = -march=x86-64 -mtune=generic
         CFLAGS_PATHS = -I/usr/local/include
         LDFLAGS_PATHS = -L/usr/local/lib
     endif
@@ -69,19 +69,19 @@ ifeq ($(UNAME_S),Darwin)
     endif
 else ifeq ($(UNAME_S),FreeBSD)
     # FreeBSD: packages in /usr/local, use baseline x86-64
-    CFLAGS_ARCH = -march=x86-64 -mtune=generic
+#    CFLAGS_ARCH = -march=x86-64 -mtune=generic
     CFLAGS_PATHS = -I/usr/local/include
     LDFLAGS_PATHS = -L/usr/local/lib
     LDFLAGS_BASE = -lm
     OPENMP_LIBS =
 else ifeq ($(UNAME_S),OpenBSD)
-    CFLAGS_ARCH = -march=x86-64 -mtune=generic
+#    CFLAGS_ARCH = -march=x86-64 -mtune=generic
     CFLAGS_PATHS = -I/usr/local/include
     LDFLAGS_PATHS = -L/usr/local/lib
     LDFLAGS_BASE = -lm
     OPENMP_LIBS =
 else ifeq ($(UNAME_S),NetBSD)
-    CFLAGS_ARCH = -march=x86-64 -mtune=generic
+#    CFLAGS_ARCH = -march=x86-64 -mtune=generic
     CFLAGS_PATHS = -I/usr/local/include -I/usr/pkg/include
     LDFLAGS_PATHS = -L/usr/local/lib -L/usr/pkg/lib
     LDFLAGS_BASE = -lm
@@ -92,11 +92,11 @@ else
     ifeq ($(ARCH),aarch64)
         # ARM64: Use generic ARMv8-A with CRC (universally supported)
         # This works on all ARM64 CPUs from Cortex-A53 to Neoverse-V2
-        CFLAGS_ARCH = -mcpu=generic+crc
+#        CFLAGS_ARCH = -mcpu=generic+crc
     else ifeq ($(ARCH),x86_64)
         # x86_64: Use baseline x86-64 with SSE2 (universally supported since 2003)
         # This works on all x86_64 CPUs from Opteron/Pentium 4 to latest Xeon/EPYC
-        CFLAGS_ARCH = -march=x86-64 -mtune=generic
+#        CFLAGS_ARCH = -march=x86-64 -mtune=generic
     else
         # Other architectures: use generic optimization
         #CFLAGS_ARCH = -mtune=generic
