# $NetBSD: Makefile.serverlib,v 1.17 2022/10/28 09:43:59 wiz Exp $ NOFULLRELRO= yes USE_FORT?= yes # network server *and* setuid .include <bsd.own.mk> # for NETBSDSRCDIR and mk.conf processing # We can't use LIBISPRIVATE here as we need the ".so" installed. MKPICINSTALL:= no MKLINT:= no MKDEBUGLIB:= no MKPROFILE:= no .include <bsd.endian.mk> .if ${TARGET_ENDIANNESS} == "1234" X_BYTE_ORDER=X_LITTLE_ENDIAN .elif ${TARGET_ENDIANNESS} == "4321" X_BYTE_ORDER=X_BIG_ENDIAN .else X_BYTE_ORDER=0 .endif CPPFLAGS+= ${X11FLAGS.SERVER} CPPFLAGS+= -DXORG_VERSION_CURRENT=${XORG_VERSION_CURRENT} .if ${HAVE_XORG_GLAMOR} != "no" CPPFLAGS+= -DGLAMOR .endif .if (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "sparc64") CPPFLAGS+= -D__GLX_ALIGN64 .endif # IOPortBase is particularly annoying to fix COPTS+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -fcommon :} |