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 += -_gcc=-Wno-uninitialized
90
91 $(LIBS):= PICS += $(SHAREDOBJS)
92
93 .KEEP_STATE:
94
95 all: $(LIBS)
96
97 lint: lintcheck
98
99 include $(SRC)/lib/Makefile.targ
|
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
|