2013-11-17 22:52:17 +00:00
|
|
|
# $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.
|
2014-04-25 19:25:26 +00:00
|
|
|
MK_PROFILE?=no
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2017-01-20 04:04:25 +00:00
|
|
|
NO_PIC=
|
2013-11-17 22:52:17 +00:00
|
|
|
# -fpic on some platforms, -fPIC on others.
|
|
|
|
CFLAGS+=${PICFLAG} -DPIC -fvisibility=hidden
|
|
|
|
|
|
|
|
LIB= c_nonshared
|
|
|
|
|
2013-11-25 20:17:55 +00:00
|
|
|
LIBC_NONSHARED_SRCS=
|
|
|
|
|
2013-11-17 22:52:17 +00:00
|
|
|
# So that an empty .a file doesn't cause errors.
|
|
|
|
SRCS= __stub.c
|
|
|
|
|
|
|
|
.if ${MK_ICONV} == "yes"
|
2017-01-20 04:04:25 +00:00
|
|
|
.PATH: ${SRCTOP}/lib/libc/iconv
|
2013-11-25 20:17:55 +00:00
|
|
|
.include "Makefile.iconv"
|
2017-01-20 04:04:25 +00:00
|
|
|
CFLAGS+=-I${SRCTOP}/lib/libc/iconv
|
2013-11-17 22:52:17 +00:00
|
|
|
.endif
|
|
|
|
|
2013-11-25 20:17:55 +00:00
|
|
|
SRCS+= ${LIBC_NONSHARED_SRCS}
|
2013-11-17 22:52:17 +00:00
|
|
|
|
2013-11-25 20:17:55 +00:00
|
|
|
.include <bsd.lib.mk>
|