From b6dec6d3f71b0f11a229ed4baee2cc44a4f592ef Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 25 Jun 2018 10:19:23 +0200 Subject: [PATCH] fix link with SDL_ttf when cross compiling for windows --- src/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index c8ce3771..c77470bc 100644 --- a/src/Makefile +++ b/src/Makefile @@ -535,10 +535,14 @@ ifeq ($(NOTTF),1) else ifneq ($(ATARICROSS),1) TTFCOPT = + TTFLOPT = + ifneq ($(WIN32CROSS),1) + TTFLOPT += -L$(PREFIX)/lib + endif ifeq ($(API),sdl) - TTFLOPT = -L$(PREFIX)/lib -lSDL_ttf $(FCLOPT) + TTFLOPT += -lSDL_ttf $(FCLOPT) else - TTFLOPT = -L$(PREFIX)/lib -lSDL2_ttf $(FCLOPT) + TTFLOPT += -lSDL2_ttf $(FCLOPT) endif TTFLIBS = bin/libfreetype-6.dll bin/SDL_ttf.dll TTFLABEL =