summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2021-08-02 20:13:21 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2021-08-02 20:13:21 +0100
commit29ca302e4f395a18568e65d03dbc60914590be6b (patch)
treeee0fb8fa32a7f6812d2f0e91317aeeb545386f7e /Makefile
parent5bb88a810c485b382b501098122806bda13dc7c0 (diff)
downloadttf2f-29ca302e4f395a18568e65d03dbc60914590be6b.tar.gz
ttf2f-29ca302e4f395a18568e65d03dbc60914590be6b.tar.bz2
Fix RISC OS build
5bb88a81 got BUILD and HOST confused, so we were not linking the RISC OS binary statically.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fd8d629..77f8e2a 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ CFLAGS := $(CFLAGS) -std=c99 -D_BSD_SOURCE -D_POSIX_C_SOURCE \
# Freetype2
ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)
ifneq ($(PKGCONFIG),)
- ifeq ($(BUILD),arm-unknown-riscos)
+ ifeq ($(HOST),arm-unknown-riscos)
CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) freetype2 --cflags --static)
LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) freetype2 --libs --static)
else
@@ -37,7 +37,7 @@ endif
# OSLib (RISC OS target only)
ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)
- ifeq ($(BUILD),arm-unknown-riscos)
+ ifeq ($(HOST),arm-unknown-riscos)
CFLAGS := $(CFLAGS) -I$(PREFIX)/include -static
LDFLAGS := $(LDFLAGS) -lOSLib32 -lOSLibSupport32 -static
endif