Fix build with clang

-flto=auto is gcc specific and fails under clang
This commit is contained in:
Dmitry Marakasov 2021-04-23 14:15:42 +03:00 committed by GitHub
parent 30f386aa51
commit f62fa3df6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ ifeq ($(platform), unix)
EXT ?= so
TARGET := $(TARGET_NAME)_libretro$(PLAT).$(EXT)
fpic := -fPIC
LTO ?= -flto=auto
LTO ?= -flto
SHARED := -shared -Wl,--version-script=libretro/link.T
ifneq ($(findstring Haiku,$(shell uname -a)),)
LIBM :=