summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/patches/patch-ah
blob: c8f6de7a8ff19941bdb7f233e9cdc4d1f53165c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-ah,v 1.3 2006/01/19 12:53:17 adam Exp $

--- configs/default.orig	2005-10-25 01:35:14.000000000 +0200
+++ configs/default
@@ -14,10 +14,6 @@ MESA_TINY=1
 DRM_SOURCE_PATH=$(TOP)/../drm
 
 # Compiler and flags
-CC = cc
-CXX = CC
-CFLAGS = -O
-CXXFLAGS = -O
 GLU_CFLAGS = 
 
 # Misc tools and flags
@@ -56,7 +52,7 @@ GLW_SOURCES = GLwDrawA.c
 
 # Directories
 LIB_DIR = $(TOP)/lib
-INSTALL_PREFIX = /usr/local
+INSTALL_PREFIX = ${PREFIX}
 SRC_DIRS = mesa glu glut/glx glw
 GLU_DIRS = sgi
 DRIVER_DIRS = x11 osmesa
@@ -66,7 +62,7 @@ PROGRAM_DIRS = demos redbook samples xde
 
 # Library/program dependencies
 EXTRA_LIB_PATH ?=
-GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
+GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
 OSMESA_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB)
 GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
 GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm