libc: don't build compat functions if building WITHOUT_SYMVER
WITHOUT_SYMVER necessarily implies building a system without symver backwards compatability. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
931ef67a96
commit
c38dac681d
@ -3,4 +3,7 @@
|
|||||||
|
|
||||||
.PATH: ${LIBC_SRCTOP}/db/mpool
|
.PATH: ${LIBC_SRCTOP}/db/mpool
|
||||||
|
|
||||||
SRCS+= mpool.c mpool-compat.c
|
SRCS+= mpool.c
|
||||||
|
.if ${MK_SYMVER} == yes
|
||||||
|
SRCS+= mpool-compat.c
|
||||||
|
.endif
|
||||||
|
@ -49,7 +49,6 @@ SRCS+= __getosreldate.c \
|
|||||||
fstab.c \
|
fstab.c \
|
||||||
ftok.c \
|
ftok.c \
|
||||||
fts.c \
|
fts.c \
|
||||||
fts-compat.c \
|
|
||||||
ftw.c \
|
ftw.c \
|
||||||
getbootfile.c \
|
getbootfile.c \
|
||||||
getbsize.c \
|
getbsize.c \
|
||||||
@ -137,7 +136,6 @@ SRCS+= __getosreldate.c \
|
|||||||
ualarm.c \
|
ualarm.c \
|
||||||
ulimit.c \
|
ulimit.c \
|
||||||
uname.c \
|
uname.c \
|
||||||
unvis-compat.c \
|
|
||||||
usleep.c \
|
usleep.c \
|
||||||
utime.c \
|
utime.c \
|
||||||
utxdb.c \
|
utxdb.c \
|
||||||
@ -147,6 +145,10 @@ SRCS+= __getosreldate.c \
|
|||||||
waitpid.c \
|
waitpid.c \
|
||||||
waitid.c \
|
waitid.c \
|
||||||
wordexp.c
|
wordexp.c
|
||||||
|
.if ${MK_SYMVER} == yes
|
||||||
|
SRCS+= fts-compat.c \
|
||||||
|
unvis-compat.c
|
||||||
|
.endif
|
||||||
|
|
||||||
.PATH: ${LIBC_SRCTOP}/../../contrib/libc-pwcache
|
.PATH: ${LIBC_SRCTOP}/../../contrib/libc-pwcache
|
||||||
SRCS+= pwcache.c pwcache.h
|
SRCS+= pwcache.c pwcache.h
|
||||||
|
@ -14,7 +14,11 @@ SRCS+= citrus_bcs.c citrus_bcs_strtol.c citrus_bcs_strtoul.c \
|
|||||||
citrus_esdb.c citrus_hash.c citrus_iconv.c citrus_lookup.c \
|
citrus_esdb.c citrus_hash.c citrus_iconv.c citrus_lookup.c \
|
||||||
citrus_lookup_factory.c citrus_mapper.c citrus_memstream.c \
|
citrus_lookup_factory.c citrus_mapper.c citrus_memstream.c \
|
||||||
citrus_mmap.c citrus_module.c citrus_none.c citrus_pivot_factory.c \
|
citrus_mmap.c citrus_module.c citrus_none.c citrus_pivot_factory.c \
|
||||||
citrus_prop.c citrus_stdenc.c bsd_iconv.c iconv_compat.c
|
citrus_prop.c citrus_stdenc.c bsd_iconv.c
|
||||||
|
.if ${MK_SYMVER} == yes
|
||||||
|
SRCS+= iconv_compat.c
|
||||||
|
.endif
|
||||||
|
|
||||||
SYM_MAPS+= ${LIBC_SRCTOP}/iconv/Symbol.map
|
SYM_MAPS+= ${LIBC_SRCTOP}/iconv/Symbol.map
|
||||||
|
|
||||||
.if ${MK_ICONV} == yes
|
.if ${MK_ICONV} == yes
|
||||||
|
@ -11,7 +11,6 @@ subr_acl_nfs4.c: ${LIBC_SRCTOP}/../../sys/kern/subr_acl_nfs4.c
|
|||||||
SRCS+= acl_branding.c \
|
SRCS+= acl_branding.c \
|
||||||
acl_calc_mask.c \
|
acl_calc_mask.c \
|
||||||
acl_copy.c \
|
acl_copy.c \
|
||||||
acl_compat.c \
|
|
||||||
acl_delete.c \
|
acl_delete.c \
|
||||||
acl_delete_entry.c \
|
acl_delete_entry.c \
|
||||||
acl_entry.c \
|
acl_entry.c \
|
||||||
@ -36,6 +35,9 @@ SRCS+= acl_branding.c \
|
|||||||
mac_get.c \
|
mac_get.c \
|
||||||
mac_set.c \
|
mac_set.c \
|
||||||
subr_acl_nfs4.c
|
subr_acl_nfs4.c
|
||||||
|
.if ${MK_SYMVER} == yes
|
||||||
|
SRCS+= acl_compat.c
|
||||||
|
.endif
|
||||||
|
|
||||||
SYM_MAPS+=${LIBC_SRCTOP}/posix1e/Symbol.map
|
SYM_MAPS+=${LIBC_SRCTOP}/posix1e/Symbol.map
|
||||||
|
|
||||||
|
@ -5,8 +5,9 @@
|
|||||||
.PATH: ${LIBC_SRCTOP}/secure
|
.PATH: ${LIBC_SRCTOP}/secure
|
||||||
|
|
||||||
# Sources common to both syscall interfaces:
|
# Sources common to both syscall interfaces:
|
||||||
SRCS+= \
|
SRCS+= stack_protector.c
|
||||||
stack_protector.c \
|
.if ${MK_SYMVER} == yes
|
||||||
stack_protector_compat.c
|
SRCS+= stack_protector_compat.c
|
||||||
|
.endif
|
||||||
|
|
||||||
SYM_MAPS+= ${LIBC_SRCTOP}/secure/Symbol.map
|
SYM_MAPS+= ${LIBC_SRCTOP}/secure/Symbol.map
|
||||||
|
Loading…
Reference in New Issue
Block a user