summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6f9ec56..728e5fb 100644
--- a/Makefile
+++ b/Makefile
@@ -20,8 +20,13 @@ CFLAGS := $(CFLAGS) -std=c99 -D_BSD_SOURCE -D_POSIX_C_SOURCE \
# Freetype2
ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)
ifneq ($(PKGCONFIG),)
- CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) freetype2 --cflags)
- LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) freetype2 --libs)
+ ifeq ($(TARGET),riscos)
+ CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) freetype2 --cflags --static)
+ LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) freetype2 --libs --static)
+ else
+ CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) freetype2 --cflags)
+ LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) freetype2 --libs)
+ endif
else
CFLAGS := $(CFLAGS) -I$(PREFIX)/include/freetype2
LDFLAGS := $(LDFLAGS) -lfreetype -lz