summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-13 23:23:56 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-05-13 23:23:56 +0000
commit559394b46e06023a5ebd6505aa1922f1dc890a10 (patch)
treefa8f812b97b2a5e6dc31efd1999f1250b3d8be64 /Makefile
parentdf3a5a0cbc20de6358ab382b17afac1941cc8096 (diff)
downloadttf2f-559394b46e06023a5ebd6505aa1922f1dc890a10.tar.gz
ttf2f-559394b46e06023a5ebd6505aa1922f1dc890a10.tar.bz2
Static binaries. We need _POSIX_C_SOURCE for sensible PATH_MAX, too.
svn path=/trunk/tools/ttf2f/; revision=7509
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4017938..6f9ec56 100644
--- a/Makefile
+++ b/Makefile
@@ -14,8 +14,8 @@ include build/makefiles/Makefile.tools
WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs -Werror #-pedantic
-CFLAGS := $(CFLAGS) -std=c99 -D_BSD_SOURCE -I$(CURDIR)/include/ \
- -I$(CURDIR)/src $(WARNFLAGS) -Dasm="__asm"
+CFLAGS := $(CFLAGS) -std=c99 -D_BSD_SOURCE -D_POSIX_C_SOURCE \
+ -I$(CURDIR)/include/ -I$(CURDIR)/src $(WARNFLAGS) -Dasm="__asm"
# Freetype2
ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)
@@ -31,8 +31,8 @@ endif
# OSLib (RISC OS target only)
ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)
ifeq ($(TARGET),riscos)
- CFLAGS := $(CFLAGS) -I$(PREFIX)/include
- LDFLAGS := $(LDFLAGS) -lOSLib32 -lOSLibSupport32
+ CFLAGS := $(CFLAGS) -I$(PREFIX)/include -static
+ LDFLAGS := $(LDFLAGS) -lOSLib32 -lOSLibSupport32 -static
endif
endif