Skip to content

Commit e8b683d

Browse files
committed
autobuild macosx: fix missing freetype library
1 parent 008dc16 commit e8b683d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/simple/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ bin = simple
33
root = ../..
44

55
CFLAGS = -pedantic -Wall -g -I$(root)/src
6-
LDFLAGS = -L$(root) -Wl,-rpath,$(root) -ldrawtext -lfreetype $(libgl)
6+
LDFLAGS = -L$(root) -Wl,-rpath,$(root) $(lib) $(libgl)
77

88
font = serif.ttf
99

1010
sys := $(shell uname -s | sed 's/MINGW.*/mingw/')
1111
ifeq ($(sys), Darwin)
12+
lib = -ldrawtext
1213
libgl = -framework OpenGL -framework GLUT
1314
else ifeq ($(sys), mingw)
15+
lib = -ldrawtext -lfreetype
1416
libgl = -lopengl32 -lglu32 -lfreeglut
1517
else
18+
lib = -ldrawtext
1619
libgl = -lGL -lGLU -lglut -lm
1720
endif
1821

0 commit comments

Comments
 (0)