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


  46 # LDFLAGS is used by zlib's build system to build programs, not the library
  47 # itself.  For that, it accepts only a combined linker+flags+libs command
  48 # line via the LDSHARED variable.
  49 #
  50 LDSHARED_FLAGS = \
  51         -shared \
  52         -Wl,-h,libz.so.1 \
  53         -Wl,-zdefs \
  54         -Wl,-ztext \
  55         -Wl,-zcombreloc \
  56         -Wl,-M,../mapfile
  57 
  58 ifneq ($(STRAP),strap)
  59         LDSHARED_FLAGS += $(GENLDFLAGS)
  60 endif
  61 
  62 LDSHARED_FLAGS.32 =     $(LDSHARED_FLAGS) $(SYSLIBDIRS:%=-L$(DESTDIR)/%)
  63 LDSHARED_FLAGS.64 =     $(LDSHARED_FLAGS) $(SYSLIBDIRS:%=-L$(DESTDIR)/%/64)
  64 LDSHARED_LIBS =         -lc
  65 





  66 LDFLAGS +=      -L. -lz -lc
  67 LDFLAGS.64 +=   -L. -lz -lc
  68 
  69 OVERRIDES = \
  70         LDSHARED="$(GCC) $(LDSHARED_FLAGS.32) $(LDSHARED_LIBS)" \
  71         LDFLAGS="$(LDFLAGS)"
  72 
  73 OVERRIDES.64 = \
  74         LDSHARED="$(GCC.64) $(LDSHARED_FLAGS.64) $(LDSHARED_LIBS)" \
  75         LDFLAGS="$(LDFLAGS.64)"
  76 
  77 BUILD32 =       yes
  78 BUILD64 =       yes
  79 
  80 include ../Makefile.targ
  81 
  82 all: all_autoconf
  83 
  84 install: all
  85         BASE=$(BASE) DESTDIR=$(DESTDIR) VERS=$(VER.32) ksh93 ./install-zlib


  46 # LDFLAGS is used by zlib's build system to build programs, not the library
  47 # itself.  For that, it accepts only a combined linker+flags+libs command
  48 # line via the LDSHARED variable.
  49 #
  50 LDSHARED_FLAGS = \
  51         -shared \
  52         -Wl,-h,libz.so.1 \
  53         -Wl,-zdefs \
  54         -Wl,-ztext \
  55         -Wl,-zcombreloc \
  56         -Wl,-M,../mapfile
  57 
  58 ifneq ($(STRAP),strap)
  59         LDSHARED_FLAGS += $(GENLDFLAGS)
  60 endif
  61 
  62 LDSHARED_FLAGS.32 =     $(LDSHARED_FLAGS) $(SYSLIBDIRS:%=-L$(DESTDIR)/%)
  63 LDSHARED_FLAGS.64 =     $(LDSHARED_FLAGS) $(SYSLIBDIRS:%=-L$(DESTDIR)/%/64)
  64 LDSHARED_LIBS =         -lc
  65 
  66 ifeq ($(STRAP),strap)
  67         LDSHARED_FLAGS.32 += $(SYSLIBDIRS:%=-R$(DESTDIR)/%)
  68         LDSHARED_FLAGS.64 += $(SYSLIBDIRS:%=-R$(DESTDIR)/%/64)
  69 endif
  70 
  71 LDFLAGS +=      -L. -lz -lc
  72 LDFLAGS.64 +=   -L. -lz -lc
  73 
  74 OVERRIDES = \
  75         LDSHARED="$(GCC) $(LDSHARED_FLAGS.32) $(LDSHARED_LIBS)" \
  76         LDFLAGS="$(LDFLAGS)"
  77 
  78 OVERRIDES.64 = \
  79         LDSHARED="$(GCC.64) $(LDSHARED_FLAGS.64) $(LDSHARED_LIBS)" \
  80         LDFLAGS="$(LDFLAGS.64)"
  81 
  82 BUILD32 =       yes
  83 BUILD64 =       yes
  84 
  85 include ../Makefile.targ
  86 
  87 all: all_autoconf
  88 
  89 install: all
  90         BASE=$(BASE) DESTDIR=$(DESTDIR) VERS=$(VER.32) ksh93 ./install-zlib