Skip to content

Commit 0684a6a

Browse files
committed
appimage: fix architecture specific compilation flags
1 parent 2624809 commit 0684a6a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Makefile.defs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,18 @@ endif
605605
HOST_ARCH = -march=native
606606

607607
ifdef APPIMAGE
608-
HOST_ARCH = -mtune=generic
609-
ifneq (,$(filter x86_64-%,$(TARGET_MACHINE)))
608+
ifneq (,$(filter aarch64-%,$(TARGET_MACHINE)))
609+
APPIMAGE_ARCH = aarch64
610+
HOST_ARCH = $(ARM64_GENERIC_ARCH)
611+
else ifneq (,$(filter arm-%-gnueabihf,$(TARGET_MACHINE)))
612+
APPIMAGE_ARCH = armhf
613+
HOST_ARCH = $(ARMV7_GENERIC_ARCH) -mfloat-abi=hard
614+
else ifneq (,$(filter x86_64-%,$(TARGET_MACHINE)))
615+
APPIMAGE_ARCH = x86_64
610616
# We want to run the AppImage on any 64-bit CPU
611-
HOST_ARCH += -march=x86-64
617+
HOST_ARCH = -mtune=generic -march=x86-64
618+
else
619+
$(error unsupported AppImage architecture: $(TARGET_MACHINE))
612620
endif
613621
endif
614622

0 commit comments

Comments
 (0)