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