]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - lib/libc_nonshared/Makefile
MFC r347990:
[FreeBSD/stable/10.git] / lib / libc_nonshared / Makefile
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.
7 NO_PROFILE?=
8 .include <bsd.own.mk>
9 NO_PIC=
10 # -fpic on some platforms, -fPIC on others.
11 CFLAGS+=${PICFLAG} -DPIC -fvisibility=hidden
12
13 LIB=    c_nonshared
14
15 LIBC_NONSHARED_SRCS=
16
17 # So that an empty .a file doesn't cause errors.
18 SRCS=   __stub.c
19
20 .if ${MK_ICONV} == "yes"
21 .PATH: ${SRCTOP}/lib/libc/iconv
22 .include "Makefile.iconv"
23 CFLAGS+=-I${SRCTOP}/lib/libc/iconv
24 .endif
25
26 SRCS+=  ${LIBC_NONSHARED_SRCS}
27
28 .include <bsd.lib.mk>