1 # $NetBSD: Makefile.serverlib,v 1.17 2022/10/28 09:43:59 wiz Exp $ 2 3 NOFULLRELRO= yes 4 5 USE_FORT?= yes # network server *and* setuid 6 7 .include <bsd.own.mk> # for NETBSDSRCDIR and mk.conf processing 8 9 # We can't use LIBISPRIVATE here as we need the ".so" installed. 10 MKPICINSTALL:= no 11 MKLINT:= no 12 MKDEBUGLIB:= no 13 MKPROFILE:= no 14 15 .include <bsd.endian.mk> 16 17 .if ${TARGET_ENDIANNESS} == "1234" 18 X_BYTE_ORDER=X_LITTLE_ENDIAN 19 .elif ${TARGET_ENDIANNESS} == "4321" 20 X_BYTE_ORDER=X_BIG_ENDIAN 21 .else 22 X_BYTE_ORDER=0 23 .endif 24 25 CPPFLAGS+= ${X11FLAGS.SERVER} 26 CPPFLAGS+= -DXORG_VERSION_CURRENT=${XORG_VERSION_CURRENT} 27 28 .if ${HAVE_XORG_GLAMOR} != "no" 29 CPPFLAGS+= -DGLAMOR 30 .endif 31 32 .if (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "sparc64") 33 CPPFLAGS+= -D__GLX_ALIGN64 34 .endif 35 36 # IOPortBase is particularly annoying to fix 37 COPTS+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -fcommon :} 38