Print this page
4863 illumos-gate can't be built with fresh perl versions
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
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
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 13 # Copyright 2014, OmniTI Computer Consulting, Inc. All rights reserved.
14 14 #
15 15
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 # Link against libc as perl solaris specs
17 17 $(PERLEXT):= LDLIBS += -lc
18 18
19 19 # Allow for undefined symbols satisfied by perl
20 20 $(PERLEXT):= ZDEFS =
21 21
22 22 $(ROOTPERLEXT) := FILEMODE = 0555
23 23 $(ROOTPERLMOD) := FILEMODE = 0444
24 24
25 25 # CFLAGS for perl, specifically.
26 -PCFLAGS= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV \
27 - -D_TS_ERRNO
26 +PCFLAGS= -DPERL_EUPXS_ALWAYS_EXPORT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
27 + -DPERL_USE_SAFE_PUTENV -D_TS_ERRNO
28 28
29 29 $(MACH):
30 30 $(INS.dir)
31 31
32 32 $(PERLEXT): $(MACH)/$(MODULE).o
33 33 $(BUILD.SO) $(MACH)/$(MODULE).o
34 34
35 35 $(MACH)/$(MODULE).o: $(MACH)/$(MODULE).c
36 36 $(COMPILE.c) $(PCFLAGS) $(C_PICFLAGS) -I$(PERLINCDIR) $< -o $@
37 37
38 38 $(MACH)/$(MODULE).c: $(MACH) $(MODULE).xs
39 39 $(PERLDIR)/bin/xsubpp $(XSUBPPFLAGS) $(MODULE).xs >$@
40 40
41 41 $(ROOTPERLMODDIR):
42 42 $(INS.dir)
43 43
44 44 $(ROOTPERLMOD): $(ROOTPERLMODDIR) $(MODULE).pm
45 45 $(RM) $@; $(INS) -s -m $(FILEMODE) -f $^
46 46
47 47 $(ROOTPERLEXTDIR):
48 48 $(INS.dir)
49 49
50 50 $(ROOTPERLEXT): $(ROOTPERLEXTDIR) $(MACH)/$(MODULE).so
51 51 $(RM) $@; $(INS) -s -m $(FILEMODE) -f $^
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX