summaryrefslogtreecommitdiffstats
path: root/src/egl/main/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main/SConscript')
-rw-r--r--src/egl/main/SConscript12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/egl/main/SConscript b/src/egl/main/SConscript
index 5d0073e14e0..399c020c2d0 100644
--- a/src/egl/main/SConscript
+++ b/src/egl/main/SConscript
@@ -7,7 +7,6 @@ Import('*')
env = env.Clone()
env.Append(CPPDEFINES = [
- '_EGL_BUILT_IN_DRIVER_GALLIUM',
'_EGL_DRIVER_SEARCH_DIR=\\"\\"',
])
@@ -38,6 +37,9 @@ else:
egl_dri2,
libloader,
])
+ # Disallow undefined symbols
+ if env['platform'] != 'darwin':
+ env.Append(SHLINKFLAGS = ['-Wl,-z,defs'])
env.Append(CPPPATH = [
'#/include',
@@ -47,9 +49,11 @@ env.Append(CPPPATH = [
# parse Makefile.sources
egl_sources = env.ParseSourceList('Makefile.sources', 'LIBEGL_C_FILES')
-egl = env.ConvenienceLibrary(
- target = 'egl',
+egl = env.SharedLibrary(
+ target = 'EGL',
source = egl_sources,
)
-Export('egl')
+egl = env.InstallSharedLibrary(egl, version=(1, 0, 0))
+
+env.Alias('egl', egl)