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