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>
|
2013-11-17 22:52:17 +00:00
|
|
|
NO_PIC=
|
|
|
|
# -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"
|
2013-11-25 20:17:55 +00:00
|
|
|
.PATH: ${.CURDIR}/../libc/iconv
|
|
|
|
.include "Makefile.iconv"
|
2013-11-17 22:52:17 +00:00
|
|
|
CFLAGS+=-I${.CURDIR}/../libc/iconv
|
|
|
|
.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>
|