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 <eric.engestrom@intel.com> (v1)
Reviewed-by: Emil Velikov <emil.velikov@collabora.com> (v1)
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,
#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.
*