diff --git a/lib/libc/Makefile b/lib/libc/Makefile --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -29,6 +29,7 @@ LIB=c SHLIB_MAJOR= 7 +SYMBOLS_REF_MD= .if ${MK_SSP} != "no" && \ (${LIBC_ARCH} == "i386" || ${LIBC_ARCH:Mpowerpc*} != "") SHLIB_LDSCRIPT=libc.ldscript diff --git a/lib/libcxxrt/Makefile b/lib/libcxxrt/Makefile --- a/lib/libcxxrt/Makefile +++ b/lib/libcxxrt/Makefile @@ -4,6 +4,7 @@ SRCDIR= ${SRCTOP}/contrib/libcxxrt SHLIB_MAJOR= 1 +SYMBOLS_REF_MD= SHLIBDIR?= /lib .PATH: ${SRCDIR} diff --git a/lib/libgcc_s/Makefile b/lib/libgcc_s/Makefile --- a/lib/libgcc_s/Makefile +++ b/lib/libgcc_s/Makefile @@ -1,6 +1,7 @@ PACKAGE= clibs SHLIB_NAME= libgcc_s.so.1 +SYMBOLS_REF_MD= SHLIBDIR?= /lib # Enabling UBSan triggers "undefined reference to vtable for __cxxabiv1::__function_type_info" diff --git a/lib/libsys/Makefile b/lib/libsys/Makefile --- a/lib/libsys/Makefile +++ b/lib/libsys/Makefile @@ -20,6 +20,7 @@ LIB=sys SHLIB_MAJOR= 7 +SYMBOLS_REF_MD= WARNS?= 2 MK_SSP= no diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile --- a/lib/libthr/Makefile +++ b/lib/libthr/Makefile @@ -14,6 +14,7 @@ LIB=thr SHLIB_MAJOR= 3 +SYMBOLS_REF_MD= NO_WTHREAD_SAFETY=1 NO_WCAST_ALIGN.gcc=1 # for gcc 4.2