Skip to content

Commit 8e45931

Browse files
committed
appimage: fix compilation flags on non-x86_64
1 parent f3afd45 commit 8e45931

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile.defs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,10 @@ endif
604604

605605
HOST_ARCH:=-march=native
606606
ifdef APPIMAGE
607-
# We want to run the AppImage on any 64-bit CPU
608-
HOST_ARCH:=-mtune=generic -march=x86-64
607+
ifneq (,$(filter x86_64-%,$(TARGET_MACHINE)))
608+
# We want to run the AppImage on any 64-bit CPU
609+
HOST_ARCH:=-mtune=generic -march=x86-64
610+
endif
609611
endif
610612

611613
ifeq ($(TARGET), linux)

0 commit comments

Comments
 (0)