xref: /freebsd/lib/libc_nonshared/Makefile (revision c6989859ae9388eeb46a24fe88f9b8d07101c710)
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
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