diff --git a/sys/modules/rdrand_rng/Makefile b/sys/modules/rdrand_rng/Makefile index 7f14c080a260..3fdecd64f78f 100644 --- a/sys/modules/rdrand_rng/Makefile +++ b/sys/modules/rdrand_rng/Makefile @@ -1,11 +1,16 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/random KMOD= rdrand_rng SRCS= ivy.c SRCS+= bus_if.h device_if.h CFLAGS+= -I${SRCTOP}/sys +# ld.bfd doesn't support ifuncs invoked non-PIC +.if ${MACHINE_CPUARCH} == "i386" +CFLAGS.gcc= -fPIC +.endif + .include