From f2285ca5410456673906e9e258bf9e27974161de Mon Sep 17 00:00:00 2001 From: Jason King Date: Wed, 25 Apr 2018 15:51:01 -0500 Subject: OS-6909 mandoc(1) should be large file aware Reviewed by: Dan McDonald Approved by: John Levon --- usr/src/cmd/mandoc/Makefile.common | 3 ++- usr/src/tools/mandoc/Makefile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/usr/src/cmd/mandoc/Makefile.common b/usr/src/cmd/mandoc/Makefile.common index ac5b6fe2ac..e47ef79569 100644 --- a/usr/src/cmd/mandoc/Makefile.common +++ b/usr/src/cmd/mandoc/Makefile.common @@ -12,6 +12,7 @@ # # Copyright 2014 Garrett D'Amore # Copyright 2017 Nexenta Systems, Inc. +# Copyright 2018, Joyent, Inc. # PROG= mandoc @@ -78,6 +79,6 @@ OBJS += compat_ohash.o CFLAGS += $(CC_VERBOSE) CSTD = $(CSTD_GNU99) -CPPFLAGS += -DOSNAME="\"illumos\"" +CPPFLAGS += -DOSNAME="\"illumos\"" -D_FILE_OFFSET_BITS=64 LDLIBS += -lz diff --git a/usr/src/tools/mandoc/Makefile b/usr/src/tools/mandoc/Makefile index e6b9571841..e3b1b39422 100644 --- a/usr/src/tools/mandoc/Makefile +++ b/usr/src/tools/mandoc/Makefile @@ -11,7 +11,7 @@ # # Copyright 2017 Nexenta Systems, Inc. -# Copyright 2017 Joyent, Inc. +# Copyright 2018 Joyent, Inc. # CMDDIR= $(SRC)/cmd/mandoc @@ -21,6 +21,7 @@ include $(SRC)/tools/Makefile.tools include $(CMDDIR)/Makefile.common CPPFLAGS += -_gcc=-nostdinc -I/usr/include -I$(NATIVE_ADJUNCT)/include +CPPFLAGS += -D_FILE_OFFSET_BITS=64 LDFLAGS += -L$(NATIVE_ADJUNCT)/lib -R$(NATIVE_ADJUNCT)/lib OBJS += fts.o \ reallocarray.o \ -- cgit v1.2.3