aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-09-21 17:49:37 +0000
committerEd Maste <emaste@FreeBSD.org>2018-09-21 17:49:37 +0000
commit35d1666cbb67c30d0daa99e955d1ecb1756fe1d5 (patch)
tree55a18e7ae57270af2a86e2cb5eeed2e5a914d7dd /lib
parent397358d9aca10667451f7667852bee2f27b617c0 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index f82a5b190a22..a1ce123c0f33 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -21,6 +21,11 @@ LIBC_ARCH=${MACHINE_ARCH}
LIBC_ARCH=${MACHINE_CPUARCH}
.endif
+.if (${LIBC_ARCH} == amd64 || ${LIBC_ARCH} == i386) && \
+ defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == ""
+.error ${LIBC_ARCH} libc requires linker ifunc support
+.endif
+
# All library objects contain FreeBSD revision strings by default; they may be
# excluded as a space-saving measure. To produce a library that does
# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS