Browse Source

don't cross compile when on Power

nia-debug
Dan Horák 4 years ago
parent
commit
2d7994dc12
  1. 8
      hello_world/Makefile

8
hello_world/Makefile

@ -1,4 +1,10 @@ @@ -1,4 +1,10 @@
CROSS_COMPILE = powerpc64le-linux-
ARCH = $(shell uname -m)
ifneq ("$(ARCH)", "ppc64")
ifneq ("$(ARCH)", "ppc64le")
CROSS_COMPILE = powerpc64le-linux-
endif
endif

CC = $(CROSS_COMPILE)gcc
LD = $(CROSS_COMPILE)ld
OBJCOPY = $(CROSS_COMPILE)objcopy

Loading…
Cancel
Save