Print this page
8512 libstand won't build with GCC 7.1

Split Close
Expand all
Collapse all
          --- old/usr/src/boot/lib/libstand/Makefile.inc
          +++ new/usr/src/boot/lib/libstand/Makefile.inc
↓ open down ↓ 3 lines elided ↑ open up ↑
   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  #
  13   13  # Copyright 2016 Toomas Soome <tsoome@me.com>
       14 +# Copyright 2017 RackTop Systems.
  14   15  #
  15   16  
  16   17  #
  17   18  # Notes:
  18   19  # - We don't use the libc strerror/sys_errlist because the string table is
  19   20  #   quite large.
  20   21  #
  21   22  
  22   23  # standalone components and stuff we have modified locally
  23   24  SRCS=   $(LIB_BASE)/libz/gzguts.h $(LIB_BASE)/libz/zutil.h
↓ open down ↓ 2 lines elided ↑ open up ↑
  26   27  SRCS += $(LIBSTAND_SRC)/getopt.c $(LIBSTAND_SRC)/strtol.c
  27   28  SRCS += $(LIBSTAND_SRC)/strtoul.c $(LIBSTAND_SRC)/random.c
  28   29  SRCS += $(LIBSTAND_SRC)/sbrk.c $(LIBSTAND_SRC)/twiddle.c
  29   30  SRCS += $(LIBSTAND_SRC)/zalloc.c $(LIBSTAND_SRC)/zalloc_malloc.c
  30   31  
  31   32  OBJS=   __main.o assert.o bcd.o environment.o \
  32   33          getopt.o gets.o globals.o pager.o printf.o \
  33   34          strdup.o strerror.o strtol.o strtoul.o random.o \
  34   35          sbrk.o twiddle.o zalloc.o zalloc_malloc.o
  35   36  
       37 +# builtins provided by compiler-rt
       38 +SRCS += $(LIB_BASE)/builtins/divmoddi4.c
       39 +SRCS += $(LIB_BASE)/builtins/udivmoddi4.c
       40 +OBJS += divmoddi4.o udivmoddi4.o
       41 +
  36   42  # private (pruned) versions of libc string functions
  37   43  SRCS += $(LIBSTAND_SRC)/strcasecmp.c
  38   44  OBJS += strcasecmp.o
  39   45  
  40   46  # from libc
  41   47  SRCS += $(LIB_BASE)/libc/net/ntoh.c
  42   48  OBJS += ntoh.o
  43   49  
  44   50  # string functions from libc
  45   51  SRCS += $(LIB_BASE)/libc/string/bcmp.c $(LIB_BASE)/libc/string/bcopy.c
↓ open down ↓ 151 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX