Print this page
4832 ON's Perl modules need to be built with Large File support
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/cmd/perl/Makefile.targ
+++ new/usr/src/cmd/perl/Makefile.targ
1 1 #
2 2 # This file and its contents are supplied under the terms of the
|
↓ open down ↓ |
2 lines elided |
↑ open up ↑ |
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11 #
12 12 # Copyright (c) 2014 Racktop Systems.
13 +# Copyright 2014, OmniTI Computer Consulting, Inc. All rights reserved.
13 14 #
14 15
15 16 # Link against libc as perl solaris specs
16 17 $(PERLEXT):= LDLIBS += -lc
17 18
18 19 # Allow for undefined symbols satisfied by perl
19 20 $(PERLEXT):= ZDEFS =
20 21
21 22 $(ROOTPERLEXT) := FILEMODE = 0555
22 23 $(ROOTPERLMOD) := FILEMODE = 0444
23 24
25 +# CFLAGS for perl, specifically.
26 +PCFLAGS= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV \
27 + -D_TS_ERRNO
28 +
24 29 $(MACH):
25 30 $(INS.dir)
26 31
27 32 $(PERLEXT): $(MACH)/$(MODULE).o
28 33 $(BUILD.SO) $(MACH)/$(MODULE).o
29 34
30 35 $(MACH)/$(MODULE).o: $(MACH)/$(MODULE).c
31 - $(COMPILE.c) $(C_PICFLAGS) -I$(PERLINCDIR) $< -o $@
36 + $(COMPILE.c) $(PCFLAGS) $(C_PICFLAGS) -I$(PERLINCDIR) $< -o $@
32 37
33 38 $(MACH)/$(MODULE).c: $(MACH) $(MODULE).xs
34 39 $(PERLDIR)/bin/xsubpp $(XSUBPPFLAGS) $(MODULE).xs >$@
35 40
36 41 $(ROOTPERLMODDIR):
37 42 $(INS.dir)
38 43
39 44 $(ROOTPERLMOD): $(ROOTPERLMODDIR) $(MODULE).pm
40 45 $(RM) $@; $(INS) -s -m $(FILEMODE) -f $^
41 46
42 47 $(ROOTPERLEXTDIR):
43 48 $(INS.dir)
44 49
45 50 $(ROOTPERLEXT): $(ROOTPERLEXTDIR) $(MACH)/$(MODULE).so
46 51 $(RM) $@; $(INS) -s -m $(FILEMODE) -f $^
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX