From: Eric Anholt Date: Thu, 15 Nov 2018 21:41:34 +0000 (-0800) Subject: glx: Remove an old DEFAULT_DRIVER_DIR default. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7076e9f116c2060a7f28680178d96c188c7177df;p=mesa.git glx: Remove an old DEFAULT_DRIVER_DIR default. You can tell by "Mesa/configs/default" how old this is. Your build system really has to provide the DEFAULT_DRIVER_DIR, or other loaders will break. v2: Move the bad (non-prefix-dependent) define to the SConscript to avoid breaking it. Reviewed-by: Eric Engestrom (v1) Reviewed-by: Emil Velikov (v1) --- diff --git a/src/glx/SConscript b/src/glx/SConscript index 8ce17715814..83c62e22f8c 100644 --- a/src/glx/SConscript +++ b/src/glx/SConscript @@ -24,9 +24,10 @@ env.Prepend(CPPPATH = [ env.Append(CPPDEFINES = [ '_REENTRANT', - #('DEFAULT_DRIVER_DIR', 'DRI_DRIVER_SEARCH_DIR') ]) +env.Append(CPPDEFINES = ['DEFAULT_DRIVER_DIR=\\"/usr/local/lib/dri\\"']) + env.Prepend(LIBS = [ libloader, mesautil, diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c index ab5d6c5bc03..08923d7efd5 100644 --- a/src/glx/dri_common.c +++ b/src/glx/dri_common.c @@ -77,11 +77,6 @@ dri_message(int level, const char *f, ...) #define GL_LIB_NAME "libGL.so.1" #endif -#ifndef DEFAULT_DRIVER_DIR -/* this is normally defined in Mesa/configs/default with DRI_DRIVER_SEARCH_PATH */ -#define DEFAULT_DRIVER_DIR "/usr/local/lib/dri" -#endif - /** * Try to \c dlopen the named driver. *