Skip to content

Commit 78ba8b3

Browse files
committed
Makefile fix to enable compiling for "unix-armv7-hardfloat-neon" platform
1 parent 0af6990 commit 78ba8b3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Makefile.libretro

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,22 @@ else ifneq (,$(findstring armv,$(platform)))
337337
TARGET := $(TARGET_NAME)_libretro.so
338338
SHARED := -shared -Wl,--no-undefined
339339
fpic := -fPIC
340-
CC = gcc
340+
CC ?= gcc
341341
ifneq (,$(findstring cortexa8,$(platform)))
342342
CFLAGS += -marm -mcpu=cortex-a8
343343
ASFLAGS += -mcpu=cortex-a8
344344
else ifneq (,$(findstring cortexa9,$(platform)))
345345
CFLAGS += -marm -mcpu=cortex-a9
346346
ASFLAGS += -mcpu=cortex-a9
347347
endif
348+
ifeq ($(HAS_GPU), 1)
349+
ifeq ($(HAS_GLES), 1)
350+
GL_LIB := -lGLESv2
351+
GLES :=1
352+
else
353+
GL_LIB := -lGL
354+
endif
355+
endif
348356
CFLAGS += -marm
349357
ifneq (,$(findstring neon,$(platform)))
350358
CFLAGS += -mfpu=neon

0 commit comments

Comments
 (0)