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