diff options
Diffstat (limited to 'third_party/zlib')
-rw-r--r-- | third_party/zlib/zlib.scons | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/zlib/zlib.scons b/third_party/zlib/zlib.scons index a7dcb89..d37fafa 100644 --- a/third_party/zlib/zlib.scons +++ b/third_party/zlib/zlib.scons @@ -8,8 +8,16 @@ Configuration for building zlib.lib / libzlib.a. Import('env') +if env.WantSystemLib('zlib'): + env.Append(ZLIB_LIB = ['z']) + Return() + env = env.Clone() +env.Append( + ZLIB_LIB = ['zlib'], +) + if env['PLATFORM'] == 'win32': env.Append( CCFLAGS = [ |