mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Makefile: Revert r5864 and move some code introduced in r5762 to a later Mac-only block so that architecture detection is not broken on Linux.
git-svn-id: https://svn.eduke32.com/eduke32@5919 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
42bb07cace
commit
ccb7a93a7c
1 changed files with 10 additions and 10 deletions
|
@ -324,18 +324,9 @@ ifeq ($(PLATFORM),WINDOWS)
|
||||||
WINLIB?=/$(BITS)
|
WINLIB?=/$(BITS)
|
||||||
else ifeq ($(PLATFORM),WII)
|
else ifeq ($(PLATFORM),WII)
|
||||||
IMPLICIT_ARCH=ppc
|
IMPLICIT_ARCH=ppc
|
||||||
else ifeq ($(PLATFORM),DARWIN)
|
else
|
||||||
ifeq (1,$(BUILD32_ON_64))
|
|
||||||
ifeq ($(ARCH),)
|
|
||||||
override ARCH:=-arch i386
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(ARCH),)
|
ifneq ($(ARCH),)
|
||||||
override ARCH:=$(subst i486,i386,$(subst i586,i386,$(subst i686,i386,$(strip $(ARCH)))))
|
override ARCH:=$(subst i486,i386,$(subst i586,i386,$(subst i686,i386,$(strip $(ARCH)))))
|
||||||
ifneq ($(findstring -arch,$(ARCH)),-arch)
|
|
||||||
override ARCH := -arch $(ARCH)
|
|
||||||
endif
|
|
||||||
IMPLICIT_ARCH=$(ARCH)
|
IMPLICIT_ARCH=$(ARCH)
|
||||||
else
|
else
|
||||||
IMPLICIT_ARCH:=$(subst i486,i386,$(subst i586,i386,$(subst i686,i386,$(strip $(shell uname -m)))))
|
IMPLICIT_ARCH:=$(subst i486,i386,$(subst i586,i386,$(subst i686,i386,$(strip $(shell uname -m)))))
|
||||||
|
@ -367,8 +358,17 @@ ifeq ($(PLATFORM),DARWIN)
|
||||||
W_STRICT_OVERFLOW :=
|
W_STRICT_OVERFLOW :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(ARCH),)
|
||||||
|
ifneq ($(findstring -arch,$(ARCH)),-arch)
|
||||||
|
override ARCH := -arch $(ARCH)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq (1,$(BUILD32_ON_64))
|
ifeq (1,$(BUILD32_ON_64))
|
||||||
COMMONFLAGS += $(F_NO_STACK_PROTECTOR)
|
COMMONFLAGS += $(F_NO_STACK_PROTECTOR)
|
||||||
|
ifeq ($(ARCH),)
|
||||||
|
override ARCH:=-arch i386
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
ifeq ($(findstring ppc,$(IMPLICIT_ARCH)),ppc)
|
ifeq ($(findstring ppc,$(IMPLICIT_ARCH)),ppc)
|
||||||
COMMONFLAGS += $(F_NO_STACK_PROTECTOR)
|
COMMONFLAGS += $(F_NO_STACK_PROTECTOR)
|
||||||
|
|
Loading…
Reference in a new issue