diff options
Diffstat (limited to 'Makefile.target')
-rw-r--r-- | Makefile.target | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.target b/Makefile.target index 1134256c81..3303b0ce5a 100644 --- a/Makefile.target +++ b/Makefile.target @@ -100,6 +100,7 @@ LDFLAGS+=-Wl,-T,$(SRC_PATH)/amd64.ld endif ifeq ($(ARCH),ppc) +CFLAGS+= -D__powerpc__ OP_CFLAGS=$(CFLAGS) LDFLAGS+=-Wl,-T,$(SRC_PATH)/ppc.ld endif @@ -152,6 +153,10 @@ ifeq ($(HAVE_GCC3_OPTIONS),yes) OP_CFLAGS+=-fno-reorder-blocks -fno-optimize-sibling-calls endif +ifeq ($(CONFIG_DARWIN),yes) +OP_CFLAGS+= -mdynamic-no-pic +endif + ######################################################### DEFINES+=-D_GNU_SOURCE @@ -267,9 +272,11 @@ endif ifndef CONFIG_SOFTMMU VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/i386-vl.ld endif +ifndef CONFIG_DARWIN ifndef CONFIG_WIN32 VL_LIBS=-lutil endif +endif $(QEMU_SYSTEM): $(VL_OBJS) libqemu.a $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(VL_LIBS) |