Some Makefile improvements

This commit is contained in:
twinaphex 2014-12-13 06:17:59 +01:00
parent 5820d8be94
commit 7e08f8c67b
1 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ ifeq ($(platform),)
arch = intel arch = intel
ifeq ($(shell uname -p),powerpc) ifeq ($(shell uname -p),powerpc)
arch = ppc arch = ppc
FORCE_32BIT_ARCH = 1
endif endif
else ifneq ($(findstring win,$(shell uname -a)),) else ifneq ($(findstring win,$(shell uname -a)),)
platform = win platform = win
@ -32,7 +33,7 @@ ifeq ($(firstword $(filter x86_64,$(UNAME))),x86_64)
else ifeq ($(firstword $(filter amd64,$(UNAME))),amd64) else ifeq ($(firstword $(filter amd64,$(UNAME))),amd64)
else ifeq ($(firstword $(filter x86,$(UNAME))),x86) else ifeq ($(firstword $(filter x86,$(UNAME))),x86)
FORCE_32BIT_ARCH := 1 FORCE_32BIT_ARCH = 1
endif endif
FORCE_32BIT := FORCE_32BIT :=
@ -233,7 +234,7 @@ ifeq ($(HAVE_MMAP), 1)
CFLAGS += -DHAVE_MMAP CFLAGS += -DHAVE_MMAP
endif endif
ifeq ($(HAVE_DYNAREC), 1) ifeq ($(FORCE_32BIT_ARCH), 1)
# Forcibly disable PIC # Forcibly disable PIC
fpic := fpic :=
endif endif