only link to bz2 if were linking statically

This commit is contained in:
Dane Springmeyer 2011-08-31 03:05:01 +00:00
parent 90acfb3e1c
commit b57a079a38

View file

@ -1073,6 +1073,7 @@ if not preconfigured:
conf.parse_config('FREETYPE_CONFIG') conf.parse_config('FREETYPE_CONFIG')
# check if freetype links to bz2 # check if freetype links to bz2
if env['RUNTIME_LINK'] == 'static':
temp_env = env.Clone() temp_env = env.Clone()
temp_env['LIBS'] = [] temp_env['LIBS'] = []
temp_env.ParseConfig('%s --libs' % env['FREETYPE_CONFIG']) temp_env.ParseConfig('%s --libs' % env['FREETYPE_CONFIG'])