Print this page
7661 illumos should provide 64bit perl modules (for omni)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/perl/Makefile.targ
          +++ new/usr/src/cmd/perl/Makefile.targ
↓ open down ↓ 1 lines elided ↑ open up ↑
   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      -# Copyright (c) 2014 Racktop Systems.
  13   12  # Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
       13 +# Copyright 2016 RackTop Systems.
  14   14  #
  15   15  
  16   16  # Link against libc as perl solaris specs
  17   17  $(PERLEXT):= LDLIBS += -lc
  18   18  $(PERLEXT64):= LDLIBS += -lc
  19   19  
  20   20  # Allow for undefined symbols satisfied by perl
  21   21  $(PERLEXT):= ZDEFS =
  22   22  $(PERLEXT64):= ZDEFS =
  23   23  
  24   24  $(ROOTPERLEXT) := FILEMODE = 0555
  25   25  $(ROOTPERLMOD) := FILEMODE = 0444
  26   26  $(ROOTPERLEXT64) := FILEMODE = 0555
  27   27  $(ROOTPERLMOD64) := FILEMODE = 0444
  28   28  
  29   29  # CFLAGS for perl, specifically.
  30   30  PCFLAGS= -DPERL_EUPXS_ALWAYS_EXPORT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
  31   31          -DPERL_USE_SAFE_PUTENV -D_TS_ERRNO
  32      -PCFLAGS64= -m64 -DPERL_EUPXS_ALWAYS_EXPORT -D_LARGEFILE64_SOURCE \
       32 +PCFLAGS64= -DPERL_EUPXS_ALWAYS_EXPORT -D_LARGEFILE64_SOURCE \
  33   33          -DPERL_USE_SAFE_PUTENV -D_TS_ERRNO
  34   34  
  35   35  $(MACH) $(MACH64):
  36   36          $(INS.dir)
  37   37  
  38      -# Sorry about this...
  39      -# BUILD.SO doesn't have distinct versions like COMPILE.c/COMPILE64.c does.
  40      -# To that end - we're defining BUILD64.SO here.
  41      -BUILD64.SO=       $(CC) $(CFLAGS64) -o $@ $(GSHARED) $(DYNFLAGS) \
  42      -                $(PICS) $(EXTPICS) -L $(ROOTLIBDIR64) $(LDLIBS)
  43      -
  44   38  $(PERLEXT): $(MACH)/$(MODULE).o
  45   39          $(BUILD.SO) $(MACH)/$(MODULE).o
  46   40  
  47   41  $(PERLEXT64): $(MACH64)/$(MODULE).o
  48   42          $(BUILD64.SO) $(MACH64)/$(MODULE).o
  49   43  
  50   44  # NOTE: With later version of Perl, we need to define PERL_EUPXS_ALWAYS_EXPORT
  51   45  # which is a backward-compatibility definition for the assumes-5.10 stuff here.
  52   46  $(MACH)/$(MODULE).o: $(MACH)/$(MODULE).c
  53   47          $(COMPILE.c) $(PCFLAGS) $(C_PICFLAGS) -I$(PERLINCDIR) $< -o $@
  54   48  
  55   49  $(MACH64)/$(MODULE).o: $(MACH64)/$(MODULE).c
  56   50          $(COMPILE64.c) $(PCFLAGS64) $(C_PICFLAGS) -I$(PERLINCDIR64) $< -o $@
  57   51  
  58   52  $(MACH)/$(MODULE).c: $(MACH) $(MODULE).xs 
  59   53          $(XSUBPP) $(XSUBPPFLAGS) $(MODULE).xs >$@
  60   54  
  61      -$(MACH64)/$(MODULE).c: $(MACH64) $(MODULE).xs 
       55 +$(MACH64)/$(MODULE).c: $(MACH64) $(MODULE).xs
  62   56          $(XSUBPP64) $(XSUBPPFLAGS) $(MODULE).xs >$@
  63   57  
  64   58  $(ROOTPERLMODDIR) $(ROOTPERLMODDIR64):
  65   59          $(INS.dir)
  66   60  
  67   61  $(ROOTPERLMOD): $(ROOTPERLMODDIR) $(MODULE).pm
  68   62          $(RM) $@; $(INS) -s -m $(FILEMODE) -f $^
  69   63  
  70   64  $(ROOTPERLMOD64): $(ROOTPERLMODDIR64) $(MODULE).pm
  71   65          $(RM) $@; $(INS) -s -m $(FILEMODE) -f $^
  72   66  
  73   67  $(ROOTPERLEXTDIR) $(ROOTPERLEXTDIR64):
  74   68          $(INS.dir)
  75   69  
  76   70  $(ROOTPERLEXT): $(ROOTPERLEXTDIR) $(MACH)/$(MODULE).so
  77   71          $(RM) $@; $(INS) -s -m $(FILEMODE) -f $^
  78   72  
  79   73  $(ROOTPERLEXT64): $(ROOTPERLEXTDIR64) $(MACH64)/$(MODULE).so
  80   74          $(RM) $@; $(INS) -s -m $(FILEMODE) -f $^
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX