# $NetBSD: Makefile.servermod,v 1.5 2021/11/01 10:05:19 nia Exp $ NOFULLRELRO= yes .include <bsd.own.mk> # For /etc/mk.conf processing .if defined(XMODULEDIR) SHLIB_MAJOR=0 # dri, dri2 and fb need to be linked statically as well? .if !defined(XMODULEDIRANDSTATIC) MKSTATICLIB:= no .endif .else # if these aren't defined the module being built is not installed # instead it is statically linked into the xserver libinstall:: moduleinstall:: .endif # x11 modules that are installed need the X11FLAGS.LOADABLE's defined .if defined(XMODULEDIR) CPPFLAGS+= ${X11FLAGS.LOADABLE} .endif # IOPortBase is particularly annoying to fix COPTS+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -fcommon :} |