From 559394b46e06023a5ebd6505aa1922f1dc890a10 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 13 May 2009 23:23:56 +0000 Subject: Static binaries. We need _POSIX_C_SOURCE for sensible PATH_MAX, too. svn path=/trunk/tools/ttf2f/; revision=7509 --- Makefile | 8 ++++---- 1 file 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 -- cgit v1.2.3