blob: 40276da7506a3c5ed3a1eda39bcc22e0cb3fe69c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $NetBSD: Makefile.servermod,v 1.10 2022/10/28 09:43:59 wiz Exp $
NOFULLRELRO= yes
USE_FORT?= yes # network server *and* setuid
.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
CPPFLAGS+= ${X11FLAGS.DIX}
# IOPortBase is particularly annoying to fix
COPTS+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -fcommon :}
|