summaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-08-19 10:38:53 +0200
committerraysan5 <[email protected]>2020-08-19 10:38:53 +0200
commit05b3ca0a83bc49d38abcc5c5ec7406be5b801742 (patch)
treec3414c6f77399a78a5c89f43dee81bf4ac35e31c /src/Makefile
parent721f015e075249a27718ae016bb32a54db904a22 (diff)
downloadraylib-05b3ca0a83bc49d38abcc5c5ec7406be5b801742.tar.gz
raylib-05b3ca0a83bc49d38abcc5c5ec7406be5b801742.zip
Update Makefile
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Makefile b/src/Makefile
index 6c1b202f..a0630e26 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -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