Skip to content

Commit

Permalink
4832 ON's perl modules need to be built with Large File support
Browse files Browse the repository at this point in the history
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Stormont <AStormont@racktopsystems.com>
Approved by: Gordon Ross <gordon.ross@nexenta.com>
  • Loading branch information
Dan McDonald committed May 8, 2014
1 parent 01ed222 commit 74515ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion usr/src/cmd/perl/Makefile.targ
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -21,14 +22,18 @@ $(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)

$(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 >$@
Expand Down

0 comments on commit 74515ee

Please sign in to comment.