xref: /freebsd/lib/libc_nonshared/Makefile (revision de7b456e596ff18032d2cbfdf244c66f36770da4)
1# $FreeBSD$
2
3# We're actually creating a libc_noshared.a that is PIC along side libc.so.*
4# It is used exclusively with libc.so.* - there is no need for any other
5# compile modes.
6# bsd.lib.mk doesn't have an easy way to express that.
7NO_PROFILE?=
8.include <bsd.own.mk>
9NO_PIC=
10# -fpic on some platforms, -fPIC on others.
11CFLAGS+=${PICFLAG} -DPIC -fvisibility=hidden
12
13LIB=	c_nonshared
14
15# So that an empty .a file doesn't cause errors.
16SRCS=	__stub.c
17
18.if ${MK_ICONV} == "yes"
19SRCS+=	__iconv.c __iconv_free_list.c __iconv_get_list.c \
20	iconv.c iconv_canonicalize.c iconv_close.c \
21	iconv_open.c iconv_open_into.c \
22	iconv_set_relocation_prefix.c iconvctl.c iconvlist.c
23CFLAGS+=-I${.CURDIR}/../libc/iconv
24.endif
25
26.include <bsd.lib.mk>
27
28