xenocara/lib/mesa/mk/libOSMesa/Makefile
jsg 0167b90cd0 explicitly remove *.la files from old Mesa builds
While we no longer install .la files for Mesa naddy@ pointed out that
using libtool to build something like libGLU could result in .la files
which reference old Mesa .la files.

Remove Mesa .la files found in DESTDIR on install as suggested by
millert@

ok millert@ matthieu@ deraadt@
2020-08-28 16:07:18 +00:00

30 lines
677 B
Makefile

# $OpenBSD: Makefile,v 1.2 2020/08/28 16:07:19 jsg Exp $
LIB= OSMesa
SRCS= osmesa.c
LDADD+= ${.CURDIR}/../libmesa_classic/${__objdir}/libmesa_classic.a \
-Wl,--whole-archive ${.CURDIR}/../libglapi_static/${__objdir}/libglapi_static.a \
-Wl,--no-whole-archive
LDADD+= -L${.CURDIR}/../libglapi/${__objdir} -lglapi \
-lm -lz
.include "../Makefile.inc"
CFLAGS+= ${C_VIS_ARGS}
CXXFLAGS+= ${CXX_VIS_ARGS}
CPPFLAGS+= -I${MESA_SRC}/src/mesa \
-I${MESA_SRC}/src/mapi \
-I${MESA_SRC}/generated/src/mapi/glapi
obj: _xenocara_obj
beforeinstall:
rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.la
.include <bsd.lib.mk>
.include <bsd.xorg.mk>
.PATH: ${MESA_SRC}/src/mesa/drivers/osmesa