Index: usr.bin/clang/Makefile.inc =================================================================== --- usr.bin/clang/Makefile.inc +++ usr.bin/clang/Makefile.inc @@ -12,4 +12,9 @@ DEBUG_FILES_CFLAGS= -g1 .endif +.if ${MACHINE_ARCH:Mmips*} && ${MACHINE_ARCH:Mmips64*} == "" +CFLAGS+= -mxgot +CXXFLAGS+= -mxgot +.endif + .include "../Makefile.inc"