Just use -lz instead of providing path to libz.a

This is cleaner and more portable.
This commit is contained in:
Daniel Gibson
2011-11-24 21:49:54 +01:00
parent 87d583c3ba
commit 3bb47adf16
2 changed files with 2 additions and 5 deletions

View File

@@ -336,7 +336,7 @@ else:
sound_env.Append( CPPDEFINES = 'NO_ALSA' )
sound_lib = sound_env.StaticLibrary( 'sound', sound_list )
local_env.Append( LIBS = [ 'pthread', 'dl' ] )
local_env.Append( LIBS = [ 'pthread', 'dl', 'z' ] )
if ( local_dedicated == 0 ):
local_env.Append( LIBS = [ 'X11', 'Xext', 'Xxf86vm' ] ) # 'Xxf86dga',
local_env.Append( LIBPATH = [ '/usr/X11R6/lib' ] )

View File

@@ -38,8 +38,5 @@ else:
g_env.Command( target_name, None, Action( build.Compile ) )
if platform.architecture()[0] == '64bit':
curl_libs = [ target_name, '/usr/lib32/libz.a' ]
else:
curl_libs = [ target_name, '/usr/lib/libz.a' ]
curl_libs = [ target_name ]
Return( 'curl_libs' )