42 ms·
Fix SConscript.curl to look in /usr/lib32 for zlib (package name: lib32z1-dev ), and to pass -m32 to your compiler. /media/d2/sw/doom3.gpl/neo$ git diff di
by sparky 15y ago
Fix SConscript.curl to look in /usr/lib32 for zlib (package name: lib32z1-dev ), and to pass -m32 to your compiler.
/media/d2/sw/doom3.gpl/neo$ git diff
diff --git a/neo/sys/scons/SConscript.curl b/neo/sys/scons/SConscript.curl
index 4d889b9..7271dfc 100644
--- a/neo/sys/scons/SConscript.curl
+++ b/neo/sys/scons/SConscript.curl
@@ -14,7 +14,7 @@ class idBuildCurl( scons_utils.idSetupBase ):
def Compile( self, target = None, source = None, env = None ):
self.TrySimpleCommand( 'cd curl ; make clean' )
- cmd = 'cd curl ; CC=\'' + env['CC'] + '\' ./configure --enable-shared=no --enable-static=yes --enable-http --enable-ftp --disable-gopher --enable-file --disable-lda
+ cmd = 'cd curl ; CC=\'' + env['CC'] + '\' CFLAGS=\'-m32\' ./configure --enable-shared=no --enable-static=yes --enable-http --enable-ftp --disable-gopher -- enable-fi
if ( self.debug ):
cmd += '--enable-debug'
else:
@@ -37,5 +37,5 @@ else:
g_env.Command( target_name, None, Action( build.Compile ) )
-curl_libs = [ target_name, '/usr/lib/libz.a' ]
+curl_libs = [ target_name, '/usr/lib32/libz.a' ]
Return( 'curl_libs' )
Linked for me on Ubuntu 11.04 64-bit.
- exDM69 15y agoThank you, this made it link. I probably would have figured it out by myself, I solve this kinds of things for living. But I was trying to quickly build this before going to work and ran out of time.