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