Update Makefile

This commit is contained in:
raysan5 2020-08-19 10:38:53 +02:00
parent 721f015e07
commit 05b3ca0a83

View file

@ -210,14 +210,6 @@ endif
CC = gcc
AR = ar
# GCC could support multilib building for x86 (-m32) and x64 (-m64)
ifeq ($(CC), gcc)
ARCH = -m32
ifeq ($(RAYLIB_BUILD_ARCH),x64)
ARCH = -m64
endif
endif
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
ifeq ($(PLATFORM_OS),OSX)
# OSX default compiler
@ -261,6 +253,14 @@ ifeq ($(PLATFORM),PLATFORM_ANDROID)
endif
endif
# GCC could support multilib building for x86 (-m32) and x64 (-m64)
ifeq ($(CC), gcc)
ARCH = -m32
ifeq ($(RAYLIB_BUILD_ARCH),x64)
ARCH = -m64
endif
endif
# Define compiler flags:
# -O1 defines optimization level