From e807c9c86fa4eb7ab4c098603c48bdba32776d7d Mon Sep 17 00:00:00 2001 From: holishing Date: Tue, 27 Nov 2018 21:28:13 +0800 Subject: [PATCH] use better way to detect architecture --- dreambbs.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dreambbs.mk b/dreambbs.mk index ee5b56498..2a72fce01 100644 --- a/dreambbs.mk +++ b/dreambbs.mk @@ -1,6 +1,6 @@ ## Common BSD make rules for DreamBBS Project -ARCHI != uname -m +ARCHI != getconf LONG_BIT OPSYS != uname -o @@ -22,7 +22,7 @@ CFLAGS = -g -O2 -pipe -fomit-frame-pointer -Wunused -Wno-invalid-source-encoding LDFLAGS = -L../lib -ldao -lcrypt -.if $(ARCHI)=="x86_64" || $(ARCHI)=="amd64" +.if $(ARCHI)=="64" CFLAGS += -m32 LDFLAGS += -m32 .endif