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