Print this page
OS-2559 illumos-extra should provide native node in proto.strap

Split Close
Expand all
Collapse all
          --- old/node.js/Makefile
          +++ new/node.js/Makefile
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  # Copyright (c) 2013, Joyent, Inc.  All rights reserved.
  22   22  #
  23   23  
  24   24  MAJOR_VER =     0.8
  25      -VER =   node-v0.8.20
       25 +VER =           node-v0.8.20
  26   26  
  27   27  include ../Makefile.defs
  28   28  
  29   29  NODE_ROOT =     $(DESTDIR)/usr/node/$(MAJOR_VER)
  30   30  VERSIONJS =     $(NODE_ROOT)/node_modules/platform_node_version.js
  31   31  
  32   32  CFLAGS +=       -Wno-unknown-pragmas
  33   33  
  34   34  #
  35   35  # Node's build system is super broken.  If we pass it LIBS at configure time,
↓ open down ↓ 2 lines elided ↑ open up ↑
  38   38  # So our only option is to add this to LDFLAGS, which has to be passed at
  39   39  # build time... including for the install target, because the generated
  40   40  # makefiles have missing dependencies and rebuild stuff when installing.
  41   41  # This has to be the most complicated, baroque, pointlessly wrong way
  42   42  # imaginable to build something with a few dozen source files.  The next time
  43   43  # you are here reading this and trying to work around the next piece of
  44   44  # Node build stupidity, just stop.  Rip all this out, write a simple makefile,
  45   45  # and copy it in at unpack time like we do for bzip2.
  46   46  #
  47   47  LDFLAGS +=      -lumem
       48 +
       49 +ifeq ($(STRAP),strap)
       50 +        LDFLAGS += $(SYSLIBDIRS:%=-R$(DESTDIR)/%)
       51 +endif
  48   52  
  49   53  AUTOCONF_OPTS += \
  50   54          --with-dtrace \
  51   55          --openssl-use-sys \
  52   56          --openssl-libpath=$(DESTDIR)/lib \
  53   57          --openssl-includes=$(DESTDIR)/usr/include \
  54   58          --shared-openssl-libname=sunw_crypto,sunw_ssl \
  55   59          --shared-zlib \
  56   60          --shared-zlib-libpath=$(DESTDIR)/lib \
  57   61          --shared-zlib-includes=$(DESTDIR)/usr/include \
↓ open down ↓ 57 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX