Skip to content

Commit

Permalink
tgemu: set endianness correctly on OSX
Browse files Browse the repository at this point in the history
Signed-off-by: Ulrich Hecht <ulrich.hecht@gmail.com>
  • Loading branch information
uli committed Apr 29, 2014
1 parent ce0e06e commit 74605fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tgemu/Makefile
Expand Up @@ -14,11 +14,13 @@ OBJS = $(RESOBJS) game.o \

LIBS = -lz

ARCH = $(shell uname -m)
ARCH = $(shell uname -p)

ifneq ($(ARCH), ppc)
ifneq ($(ARCH), powerpc)
ENDIAN = -DLSB_FIRST
endif
endif

CFLAGS = -Wall -W -Isrc -Isrc/cpu -Isrc/unix -fno-strict-aliasing -D_GNU_SOURCE $(ENDIAN) -DFAST_MEM -O2 -g

Expand Down

0 comments on commit 74605fa

Please sign in to comment.