summaryrefslogtreecommitdiffstats
path: root/lib/libc_nonshared/Makefile
blob: d32f3652e73916471817dc6f37db7ed3234f058a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $FreeBSD$

# We're actually creating a libc_noshared.a that is PIC along side libc.so.*
# It is used exclusively with libc.so.* - there is no need for any other
# compile modes.
# bsd.lib.mk doesn't have an easy way to express that.
NO_PROFILE?=
.include <bsd.own.mk>
NO_PIC=
# -fpic on some platforms, -fPIC on others.
CFLAGS+=${PICFLAG} -DPIC -fvisibility=hidden

LIB=	c_nonshared

LIBC_NONSHARED_SRCS=

# So that an empty .a file doesn't cause errors.
SRCS=	__stub.c

.if ${MK_ICONV} == "yes"
.PATH: ${SRCTOP}/lib/libc/iconv
.include "Makefile.iconv"
CFLAGS+=-I${SRCTOP}/lib/libc/iconv
.endif

SRCS+=	${LIBC_NONSHARED_SRCS}

.include <bsd.lib.mk>
OpenPOWER on IntegriCloud