4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Copyright (c) 2016 by Delphix. All rights reserved.
24 #
25
26 LIBRARY = s10_brand.a
27 VERS = .1
28 COBJS = s10_brand.o s10_deleted.o s10_signal.o
29 ASOBJS = crt.o handler.o runexe.o brand_util.o
30 OBJECTS = $(COBJS)
31
32 include ../../Makefile.s10
33 include $(SRC)/lib/Makefile.lib
34
35 SRCDIR = ../common
36 UTSBASE = $(SRC)/uts
37
38 LIBS = $(DYNLIB)
39 CSRCS = $(COBJS:%o=../common/%c)
40 SHAREDOBJS = $(ASOBJS:%o=$(ISAOBJDIR)/%o)
41 SRCS = $(CSRCS)
42
43 #
65 # solution. (The likely solution then will probably be to start using the
66 # native linker with our brand emulation library.)
67 #
68 # Note that we make sure to link our brand emulation library
69 # libmapmalloc. This is required because in most cases there will be two
70 # copies of libc in the same process and we don't want them to fight over
71 # the heap. So for our brand library we link against libmapmalloc so that
72 # if we (our or copy of libc) try to allocate any memory it will be done
73 # via mmap() instead of brk().
74 #
75 CPPFLAGS += -D_REENTRANT -U_ASM \
76 -I. -I$(BRAND_SHARED)/brand/sys -I../sys \
77 -I$(UTSBASE)/common/brand/solaris10 \
78 -I$(SRC)/uts/common/fs/zfs
79 CFLAGS += $(CCVERBOSE)
80 # Needed to handle zfs include files
81 CSTD= $(CSTD_GNU99)
82 C99LMODE= -Xc99=%all
83 DYNFLAGS += $(DYNFLAGS_$(CLASS))
84 DYNFLAGS += $(BLOCAL) $(ZNOVERSION) -Wl,-e_start
85 LDLIBS += -lc -lmapmalloc
86 LINTFLAGS += -erroff=E_STATIC_UNUSED
87 LINTFLAGS64 += -erroff=E_STATIC_UNUSED
88
89 CERRWARN += $(CNOWARN_UNINIT)
90
91 $(LIBS):= PICS += $(SHAREDOBJS)
92
93 .KEEP_STATE:
94
95 all: $(LIBS)
96
97 lint: lintcheck
98
99 include $(SRC)/lib/Makefile.targ
|
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Copyright (c) 2016 by Delphix. All rights reserved.
24 # Copyright 2020 Joyent, Inc.
25 #
26
27 LIBRARY = s10_brand.a
28 VERS = .1
29 COBJS = s10_brand.o s10_deleted.o s10_signal.o
30 ASOBJS = crt.o handler.o runexe.o brand_util.o
31 OBJECTS = $(COBJS)
32
33 include ../../Makefile.s10
34 include $(SRC)/lib/Makefile.lib
35
36 SRCDIR = ../common
37 UTSBASE = $(SRC)/uts
38
39 LIBS = $(DYNLIB)
40 CSRCS = $(COBJS:%o=../common/%c)
41 SHAREDOBJS = $(ASOBJS:%o=$(ISAOBJDIR)/%o)
42 SRCS = $(CSRCS)
43
44 #
66 # solution. (The likely solution then will probably be to start using the
67 # native linker with our brand emulation library.)
68 #
69 # Note that we make sure to link our brand emulation library
70 # libmapmalloc. This is required because in most cases there will be two
71 # copies of libc in the same process and we don't want them to fight over
72 # the heap. So for our brand library we link against libmapmalloc so that
73 # if we (our or copy of libc) try to allocate any memory it will be done
74 # via mmap() instead of brk().
75 #
76 CPPFLAGS += -D_REENTRANT -U_ASM \
77 -I. -I$(BRAND_SHARED)/brand/sys -I../sys \
78 -I$(UTSBASE)/common/brand/solaris10 \
79 -I$(SRC)/uts/common/fs/zfs
80 CFLAGS += $(CCVERBOSE)
81 # Needed to handle zfs include files
82 CSTD= $(CSTD_GNU99)
83 C99LMODE= -Xc99=%all
84 DYNFLAGS += $(DYNFLAGS_$(CLASS))
85 DYNFLAGS += $(BLOCAL) $(ZNOVERSION) -Wl,-e_start
86 LDLIBS += -lmapmalloc -lc
87 LINTFLAGS += -erroff=E_STATIC_UNUSED
88 LINTFLAGS64 += -erroff=E_STATIC_UNUSED
89
90 CERRWARN += $(CNOWARN_UNINIT)
91
92 $(LIBS):= PICS += $(SHAREDOBJS)
93
94 .KEEP_STATE:
95
96 all: $(LIBS)
97
98 include $(SRC)/lib/Makefile.targ
|