build: Remove HAVE_DLOPEN
authorMatt Turner <mattst88@gmail.com>
Mon, 2 Oct 2017 06:20:55 +0000 (23:20 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 3 Oct 2017 02:41:22 +0000 (19:41 -0700)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Android.common.mk
configure.ac
meson.build
src/mesa/SConscript

index 4d5daf8e9dd5d86cecf28df4f5f4e59d5b5b36ca..483f6c5be2e2ab67390732acde450b2b1ddd74ac 100644 (file)
@@ -64,7 +64,6 @@ LOCAL_CFLAGS += \
        -DHAVE___BUILTIN_UNREACHABLE \
        -DHAVE_PTHREAD=1 \
        -DHAVE_DLADDR \
-       -DHAVE_DLOPEN \
        -DHAVE_DL_ITERATE_PHDR \
        -DMAJOR_IN_SYSMACROS \
        -fvisibility=hidden \
index cfc97d9f0613fa7d9a7f51d1b706fd458e3a0688..903a3979d47ea19a0f42f7f05d1b35abb04b775b 100644 (file)
@@ -831,9 +831,9 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([[
 
 dnl Check to see if dlopen is in default libraries (like Solaris, which
 dnl has it in libc), or if libdl is needed to get it.
-AC_CHECK_FUNC([dlopen], [DEFINES="$DEFINES -DHAVE_DLOPEN"],
+AC_CHECK_FUNC([dlopen], [],
     [AC_CHECK_LIB([dl], [dlopen],
-       [DEFINES="$DEFINES -DHAVE_DLOPEN"; DLOPEN_LIBS="-ldl"])])
+       [DLOPEN_LIBS="-ldl"])])
 AC_SUBST([DLOPEN_LIBS])
 
 dnl Check if that library also has dladdr
index 1e0b95fcb160e20d4b6952e226a5b959974137cb..ecd08651ff060ea1e37c9a9b12b99985d5e559f5 100644 (file)
@@ -264,7 +264,6 @@ if cc.has_function('dlopen')
 else
   dep_dl = cc.find_library('dl')
 endif
-pre_args += '-DHAVE_DLOPEN'
 
 if not cc.has_function('dladdr', dependencies : dep_dl)
   error('dl library doesn\'t have dladdr')
index b63e15a3f054102821ab7937bbd75b6d83ceeda1..ba98ad4323c519cd39060290e49d13f706b80649 100644 (file)
@@ -31,10 +31,6 @@ if env['platform'] == 'windows':
     if not env['gles']:
         # prevent _glapi_* from being declared __declspec(dllimport)
         env.Append(CPPDEFINES = ['_GLAPI_NO_EXPORTS'])
-else:
-    env.Append(CPPDEFINES = [
-        ('HAVE_DLOPEN', '1'),
-    ])
 
 # parse Makefile.sources
 source_lists = env.ParseSourceList('Makefile.sources')