From 73f1c1a927fa70d4c66445781a4ccf30d4c5c91d Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 5 Mar 2011 21:34:29 +0000 Subject: Need --static for RISC OS builds svn path=/trunk/tools/ttf2f/; revision=11914 --- Makefile | 9 +++++++-- 1 file 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 -- cgit v1.2.3