summaryrefslogtreecommitdiff
path: root/net-libs/serf/files/serf-1.3.10-multilib-link-path.patch
blob: c97bc5cbc6e16f7e02fc790158d2291c4838f319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
https://bugs.gentoo.org/938134#c1
--- a/SConstruct
+++ b/SConstruct
@@ -220,6 +220,7 @@
 
 thisdir = os.getcwd()
 libdir = '$LIBDIR'
+libdir_base = os.path.basename(str(env['LIBDIR']))
 incdir = '$PREFIX/include/serf-$MAJOR'
 
 # This version string is used in the dynamic library name, and for Mac OS X also
@@ -334,7 +335,7 @@
 
   env.Append(LIBS=[apr_libs, apu_libs])
   if not env.get('SOURCE_LAYOUT', None):
-    env.Append(LIBPATH=['$APR/lib', '$APU/lib'],
+    env.Append(LIBPATH=[os.path.join('$APR', libdir_base), os.path.join('$APU', libdir_base)],
                CPPPATH=['$APR/include/apr-1', '$APU/include/apr-1'])
   elif aprstatic:
     env.Append(LIBPATH=['$APR/LibR','$APU/LibR'],
@@ -347,7 +348,7 @@
   env.Append(LIBS=['zlib.lib'])
   if not env.get('SOURCE_LAYOUT', None):
     env.Append(CPPPATH=['$ZLIB/include'],
-               LIBPATH=['$ZLIB/lib'])
+               LIBPATH=[os.path.join('$ZLIB', libdir_base)])
   else:
     env.Append(CPPPATH=['$ZLIB'],
                LIBPATH=['$ZLIB'])
@@ -355,7 +356,7 @@
   # openssl
   if not env.get('SOURCE_LAYOUT', None):
     env.Append(CPPPATH=['$OPENSSL/include/openssl'],
-               LIBPATH=['$OPENSSL/lib'])
+               LIBPATH=[os.path.join('$OPENSSL', libdir_base)])
   elif 0: # opensslstatic:
     env.Append(CPPPATH=['$OPENSSL/inc32'],
                LIBPATH=['$OPENSSL/out32'])
@@ -396,7 +397,7 @@
     apu_libs = ''
 
   env.Append(CPPPATH=['$OPENSSL/include'])
-  env.Append(LIBPATH=['$OPENSSL/lib'])
+  env.Append(LIBPATH=[os.path.join('$OPENSSL', libdir_base)])
 
 
 # If build with gssapi, get its information and define SERF_HAVE_GSSAPI