From 74515eee3550b5d4799a867dfd89e5c7722dfe0c Mon Sep 17 00:00:00 2001 From: Dan McDonald Date: Tue, 6 May 2014 13:53:58 -0400 Subject: [PATCH] 4832 ON's perl modules need to be built with Large File support Reviewed by: Robert Mustacchi Reviewed by: Andy Stormont Approved by: Gordon Ross --- usr/src/cmd/perl/Makefile.targ | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr/src/cmd/perl/Makefile.targ b/usr/src/cmd/perl/Makefile.targ index 50bc2ec621..a3211dff7f 100644 --- a/usr/src/cmd/perl/Makefile.targ +++ b/usr/src/cmd/perl/Makefile.targ @@ -10,6 +10,7 @@ # # # Copyright (c) 2014 Racktop Systems. +# Copyright 2014, OmniTI Computer Consulting, Inc. All rights reserved. # # Link against libc as perl solaris specs @@ -21,6 +22,10 @@ $(PERLEXT):= ZDEFS = $(ROOTPERLEXT) := FILEMODE = 0555 $(ROOTPERLMOD) := FILEMODE = 0444 +# CFLAGS for perl, specifically. +PCFLAGS= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV \ + -D_TS_ERRNO + $(MACH): $(INS.dir) @@ -28,7 +33,7 @@ $(PERLEXT): $(MACH)/$(MODULE).o $(BUILD.SO) $(MACH)/$(MODULE).o $(MACH)/$(MODULE).o: $(MACH)/$(MODULE).c - $(COMPILE.c) $(C_PICFLAGS) -I$(PERLINCDIR) $< -o $@ + $(COMPILE.c) $(PCFLAGS) $(C_PICFLAGS) -I$(PERLINCDIR) $< -o $@ $(MACH)/$(MODULE).c: $(MACH) $(MODULE).xs $(PERLDIR)/bin/xsubpp $(XSUBPPFLAGS) $(MODULE).xs >$@ -- 2.11.4.GIT