diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index 5c4ecb4fe95..e6841375d13 100644 --- a/libexec/rtld-elf/Makefile +++ b/libexec/rtld-elf/Makefile @@ -47,6 +47,9 @@ CFLAGS+= -DPIC $(DEBUG) .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" CFLAGS+= -fvisibility=hidden .endif +.if ${MACHINE_CPUARCH} == "mips" +CFLAGS.reloc.c+=-fno-jump-tables +.endif LDFLAGS+= -shared -Wl,-Bsymbolic -Wl,-z,defs LIBADD= c_pic .if ${MK_TOOLCHAIN} == "no"