mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-20 23:21:20 +02:00
Fix static compilation
(probably, just like last time I didn't test this)
This commit is contained in:
@@ -328,10 +328,11 @@ def findLibs(env, conf):
|
|||||||
FatalError("libz not found or not installed")
|
FatalError("libz not found or not installed")
|
||||||
|
|
||||||
#Look for libcurl
|
#Look for libcurl
|
||||||
if not GetOption('nohttp') and not GetOption('renderer') and not conf.CheckLib(['curl', 'libcurl']):
|
useCurl = not GetOption('nohttp') and not GetOption('renderer')
|
||||||
|
if useCurl and not conf.CheckLib(['curl', 'libcurl']):
|
||||||
FatalError("libcurl not found or not installed")
|
FatalError("libcurl not found or not installed")
|
||||||
|
|
||||||
if platform == "Linux" or compilePlatform == "Linux" or platform == "FreeBSD":
|
if useCurl and (platform == "Linux" or compilePlatform == "Linux" or platform == "FreeBSD"):
|
||||||
if GetOption('static'):
|
if GetOption('static'):
|
||||||
env.ParseConfig("curl-config --static-libs")
|
env.ParseConfig("curl-config --static-libs")
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user