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

Split Close
Expand all
Collapse all
          --- old/libz/Makefile
          +++ new/libz/Makefile
↓ open down ↓ 55 lines elided ↑ open up ↑
  56   56          -Wl,-M,../mapfile
  57   57  
  58   58  ifneq ($(STRAP),strap)
  59   59          LDSHARED_FLAGS += $(GENLDFLAGS)
  60   60  endif
  61   61  
  62   62  LDSHARED_FLAGS.32 =     $(LDSHARED_FLAGS) $(SYSLIBDIRS:%=-L$(DESTDIR)/%)
  63   63  LDSHARED_FLAGS.64 =     $(LDSHARED_FLAGS) $(SYSLIBDIRS:%=-L$(DESTDIR)/%/64)
  64   64  LDSHARED_LIBS =         -lc
  65   65  
       66 +ifeq ($(STRAP),strap)
       67 +        LDSHARED_FLAGS.32 += $(SYSLIBDIRS:%=-R$(DESTDIR)/%)
       68 +        LDSHARED_FLAGS.64 += $(SYSLIBDIRS:%=-R$(DESTDIR)/%/64)
       69 +endif
       70 +
  66   71  LDFLAGS +=      -L. -lz -lc
  67   72  LDFLAGS.64 +=   -L. -lz -lc
  68   73  
  69   74  OVERRIDES = \
  70   75          LDSHARED="$(GCC) $(LDSHARED_FLAGS.32) $(LDSHARED_LIBS)" \
  71   76          LDFLAGS="$(LDFLAGS)"
  72   77  
  73   78  OVERRIDES.64 = \
  74   79          LDSHARED="$(GCC.64) $(LDSHARED_FLAGS.64) $(LDSHARED_LIBS)" \
  75   80          LDFLAGS="$(LDFLAGS.64)"
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX