1258283Speter# $FreeBSD$
2258283Speter
3258283Speter# We're actually creating a libc_noshared.a that is PIC along side libc.so.*
4258283Speter# It is used exclusively with libc.so.* - there is no need for any other
5258283Speter# compile modes.
6258283Speter# bsd.lib.mk doesn't have an easy way to express that.
7258283SpeterNO_PROFILE?=
8258283Speter.include <bsd.own.mk>
9258283SpeterNO_PIC=	
10258283Speter# -fpic on some platforms, -fPIC on others.
11258283SpeterCFLAGS+=${PICFLAG} -DPIC -fvisibility=hidden
12258283Speter
13258283SpeterLIB=	c_nonshared
14258283Speter
15258750SgjbLIBC_NONSHARED_SRCS=
16258750Sgjb
17258283Speter# So that an empty .a file doesn't cause errors.
18258283SpeterSRCS=	__stub.c
19258283Speter
20258283Speter.if ${MK_ICONV} == "yes"
21258750Sgjb.PATH: ${.CURDIR}/../libc/iconv
22258750Sgjb.include "Makefile.iconv"
23258283SpeterCFLAGS+=-I${.CURDIR}/../libc/iconv
24258283Speter.endif
25258283Speter
26258750SgjbSRCS+=	${LIBC_NONSHARED_SRCS}
27258750Sgjb
28258283Speter.include <bsd.lib.mk>
29