summaryrefslogtreecommitdiff
path: root/lib/libGL
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2011-10-31 18:36:07 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2011-10-31 18:36:07 +0000
commit3a027af29e236de2a9be6d927e9969d62ae95e6c (patch)
tree752af60151ba221eedff1b4620fb7f01768abf6d /lib/libGL
parent459f608a5d6ac9e013b06c77e650bd33e67bcce4 (diff)
Use -fPIC consistently with libmesa. fixes build on sparc.
Diffstat (limited to 'lib/libGL')
-rw-r--r--lib/libGL/glsl/libglsl/Makefile6
1 files changed, 5 insertions, 1 deletions
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 <bsd.xconf.mk>
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