summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-03-05 21:34:29 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2011-03-05 21:34:29 (GMT)
commit73f1c1a927fa70d4c66445781a4ccf30d4c5c91d (patch)
treee3bea46845c474caa6154d10f029c5a3a0a4659c
parentc3ba2f6b9fc8970237bc196990a794b0d0e73f7f (diff)
downloadttf2f-73f1c1a927fa70d4c66445781a4ccf30d4c5c91d.tar.gz
ttf2f-73f1c1a927fa70d4c66445781a4ccf30d4c5c91d.tar.bz2
Need --static for RISC OS builds
svn path=/trunk/tools/ttf2f/; revision=11914
-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