xref: /freebsd/lib/libc_nonshared/Makefile (revision c7a063741720ef81d4caa4613242579d12f1d605)
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.
7MK_PROFILE?=no
8.include <src.opts.mk>
9NO_PIC=
10# -fpic on some platforms, -fPIC on others.
11CFLAGS+=${PICFLAG} -DPIC -fvisibility=hidden
12
13PACKAGE= clibs
14LIB=	c_nonshared
15
16LIBC_NONSHARED_SRCS=
17
18# So that an empty .a file doesn't cause errors.
19SRCS=	__stub.c
20
21.if ${MK_ICONV} == "yes"
22.PATH: ${SRCTOP}/lib/libc/iconv
23.include "Makefile.iconv"
24CFLAGS+=-I${SRCTOP}/lib/libc/iconv
25.endif
26
27SRCS+=	${LIBC_NONSHARED_SRCS}
28
29.include <bsd.lib.mk>
30