mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
db2af39373
it is all in the one place again. Rename libc/iconv/iconv.c to bsd_iconv.c. Compile the wrappers into libc.a so that WITHOUT_DYNAMICROOT works again. Discussed with: kib (and partly stolen from his patch)
29 lines
653 B
Makefile
29 lines
653 B
Makefile
# $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: ${.CURDIR}/../libc/iconv
|
|
.include "Makefile.iconv"
|
|
CFLAGS+=-I${.CURDIR}/../libc/iconv
|
|
.endif
|
|
|
|
SRCS+= ${LIBC_NONSHARED_SRCS}
|
|
|
|
.include <bsd.lib.mk>
|