From 3a027af29e236de2a9be6d927e9969d62ae95e6c Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Mon, 31 Oct 2011 18:36:07 +0000 Subject: Use -fPIC consistently with libmesa. fixes build on sparc. --- lib/libGL/glsl/libglsl/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libGL') diff --git a/lib/libGL/glsl/libglsl/Makefile b/lib/libGL/glsl/libglsl/Makefile index 073dc8be0..a404aa459 100644 --- a/lib/libGL/glsl/libglsl/Makefile +++ b/lib/libGL/glsl/libglsl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2011/10/27 07:07:39 matthieu Exp $ +# $OpenBSD: Makefile,v 1.4 2011/10/31 18:36:06 matthieu Exp $ .include MESA= ${.CURDIR}/../../../../dist/Mesa/src/mesa @@ -144,3 +144,7 @@ ${LIB}_pic.a: ${OBJS} $(DPADD) .PATH: ${GLSL} .PATH.cpp: ${GLSL} .PATH: ${GLSL}/glcpp + +.if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == sparc +PICFLAG=-fPIC +.endif -- cgit v1.2.3