diff mbox series

[pseudo,2/3] Makefile.in: Use ARCH_FLAGS instead of -m32 and -m64

Message ID 20250309060039.454124-3-wuxiaotian@loongson.cn
State New
Headers show
Series Porting pseudo to LoongArch | expand

Commit Message

Xiaotian Wu March 9, 2025, 6 a.m. UTC
Gcc on Loongarch does not support this -m32 and -m64 options.
we can use the $(ARCH_CLAGS) variable instead.

Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
---
 Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/Makefile.in b/Makefile.in
index 48fdbd2..0bb8a88 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -157,10 +157,10 @@  pseudo_wrappers.o: $(GUTS) pseudo_wrappers.c pseudo_wrapfuncs.c pseudo_wrapfuncs
 	$(CC) -fno-strict-aliasing $(CFLAGS) $(CFLAGS_PSEUDO) -D_GNU_SOURCE -c -o pseudo_wrappers.o pseudo_wrappers.c
 
 offsets32:
-	$(CC) -m32 -o offsets32 offsets.c
+	$(CC) $(ARCH_FLAGS) -o offsets32 offsets.c
 
 offsets64:
-	$(CC) -m64 -o offsets64 offsets.c
+	$(CC) $(ARCH_FLAGS) -o offsets64 offsets.c
 
 $(PSEUDO_PROFILE): pseudo_profile | $(BIN)
 	cp pseudo_profile $(BIN)