Skip to content


Fix build with clang
Browse files Browse the repository at this point in the history
-flto=auto is gcc specific and fails under clang
  • Loading branch information
AMDmi3 committed Apr 23, 2021
1 parent 30f386a commit f62fa3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.libretro
Original file line number Diff line number Diff line change
Expand Up @@ -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)),)
Expand Down

0 comments on commit f62fa3d

Please sign in to comment.