mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-02 19:39:12 +00:00
(svn r8643) [0.5] -Fix: [OSX] link statically to freetype when STATIC is set
This commit is contained in:
8
Makefile
8
Makefile
@@ -513,6 +513,14 @@ ifdef WITH_FREETYPE
|
||||
CDEFS += -DWITH_FREETYPE
|
||||
CCFLAGS_FREETYPE := $(shell $(FREETYPE_CONFIG) --cflags)
|
||||
LDFLAGS_FREETYPE := $(shell $(FREETYPE_CONFIG) --libs)
|
||||
|
||||
ifdef STATIC
|
||||
ifdef OSX
|
||||
# OSX needs a special lib setting when linking statically
|
||||
LDFLAGS_FREETYPE := $(shell $(FREETYPE_CONFIG) --prefix)/lib/libfreetype.a
|
||||
endif
|
||||
endif
|
||||
|
||||
CFLAGS += $(CCFLAGS_FREETYPE)
|
||||
LIBS += $(LDFLAGS_FREETYPE)
|
||||
endif
|
||||
|
Reference in New Issue
Block a user