@@ -139,6 +139,13 @@ def configure(env):
139
139
if (env ['builtin_libwebp' ] == 'no' ):
140
140
env .ParseConfig ('pkg-config libwebp --cflags --libs' )
141
141
142
+ # freetype depends on libpng and zlib, so bundling one of them while keeping others
143
+ # as shared libraries leads to weird issues
144
+ if (env ['builtin_freetype' ] == 'yes' or env ['builtin_libpng' ] == 'yes' or env ['builtin_zlib' ] == 'yes' ):
145
+ env ['builtin_freetype' ] = 'yes'
146
+ env ['builtin_libpng' ] = 'yes'
147
+ env ['builtin_zlib' ] = 'yes'
148
+
142
149
if (env ['builtin_freetype' ] == 'no' ):
143
150
env .ParseConfig ('pkg-config freetype2 --cflags --libs' )
144
151
@@ -203,10 +210,14 @@ def configure(env):
203
210
else :
204
211
print ("PulseAudio development libraries not found, disabling driver" )
205
212
213
+ if (env ['builtin_zlib' ] == 'no' ):
214
+ env .ParseConfig ('pkg-config zlib --cflags --libs' )
215
+
206
216
env .Append (CPPFLAGS = ['-DX11_ENABLED' , '-DUNIX_ENABLED' , '-DGLES2_ENABLED' , '-DGLES_OVER_GL' ])
207
- env .Append (LIBS = ['GL' , 'pthread' , 'z' ])
217
+ env .Append (LIBS = ['GL' , 'pthread' ])
218
+
208
219
if (platform .system () == "Linux" ):
209
- env .Append (LIBS = 'dl' )
220
+ env .Append (LIBS = [ 'dl' ] )
210
221
# env.Append(CPPFLAGS=['-DMPC_FIXED_POINT'])
211
222
212
223
# host compiler is default..
0 commit comments