mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-26 19:40:37 +01:00
scons: Use only the shared object name when linking progs.
Otherwise the whole path gets baked into the executable.
This commit is contained in:
parent
7713069ae3
commit
ef67ad05cb
2 changed files with 4 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ if platform != 'embedded':
|
|||
progs_env.Prepend(LIBS = ['GLU', 'GL'])
|
||||
|
||||
# Glut
|
||||
progs_env.Prepend(LIBS = [glut])
|
||||
progs_env.Prepend(LIBPATH = [glut.dir])
|
||||
progs_env.Prepend(LIBS = [glut.name])
|
||||
|
||||
# GLEW
|
||||
progs_env.Prepend(LIBS = [glew])
|
||||
|
|
|
|||
|
|
@ -105,5 +105,7 @@ env.InstallSharedLibrary(glut, version=(3, 7, 1))
|
|||
|
||||
if env['platform'] == 'windows':
|
||||
glut = env.FindIxes(glut, 'LIBPREFIX', 'LIBSUFFIX')
|
||||
else:
|
||||
glut = env.FindIxes(glut, 'SHLIBPREFIX', 'SHLIBSUFFIX')
|
||||
|
||||
Export('glut')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue