11 - CFLAGS="-g" |
11 - CFLAGS="-g" |
12 + CFLAGS="" |
12 + CFLAGS="" |
13 fi |
13 fi |
14 else |
14 else |
15 if test "$GCC" = yes; then |
15 if test "$GCC" = yes; then |
16 @@ -5425,7 +5425,7 @@ |
16 @@ -6232,7 +6232,7 @@ |
17 # debug builds. |
17 # debug builds. |
18 OPT="-g -O0 -Wall $STRICT_PROTO" |
18 OPT="-g -O0 -Wall $STRICT_PROTO" |
19 else |
19 else |
20 - OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
20 - OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
21 + OPT="$WRAP -O3 -Wall $STRICT_PROTO" |
21 + OPT="$WRAP -O3 -Wall $STRICT_PROTO" |
22 fi |
22 fi |
23 ;; |
23 ;; |
24 *) |
24 *) |
25 @@ -7813,7 +7813,7 @@ |
25 @@ -8618,7 +8618,7 @@ |
26 then |
26 then |
27 LINKFORSHARED="-Wl,--export-dynamic" |
27 LINKFORSHARED="-Wl,--export-dynamic" |
28 fi;; |
28 fi;; |
29 - SunOS/5*) case $CC in |
29 - SunOS/5*) case $CC in |
30 + SunOS/5*) case gcc in |
30 + SunOS/5*) case gcc in |
32 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
32 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
33 then |
33 then |
34 Index: setup.py |
34 Index: setup.py |
35 --- setup.py.orig 2011-06-11 17:46:28.000000000 +0200 |
35 --- setup.py.orig 2011-06-11 17:46:28.000000000 +0200 |
36 +++ setup.py 2011-12-11 16:43:40.000000000 +0100 |
36 +++ setup.py 2011-12-11 16:43:40.000000000 +0100 |
37 @@ -369,8 +369,8 @@ |
37 @@ -439,8 +439,8 @@ |
38 |
38 # directories (i.e. '.' and 'Include') must be first. See issue |
39 def detect_modules(self): |
39 # 10520. |
40 # Ensure that /usr/local is always used |
40 if not cross_compiling: |
41 - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') |
41 - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') |
42 - add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') |
42 - add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') |
43 + add_dir_to_list(self.compiler.library_dirs, '@l_prefix@/lib') |
43 + add_dir_to_list(self.compiler.library_dirs, '@l_prefix@/lib') |
44 + add_dir_to_list(self.compiler.include_dirs, '@l_prefix@/include') |
44 + add_dir_to_list(self.compiler.include_dirs, '@l_prefix@/include') |
45 self.add_multiarch_paths() |
45 # only change this for cross builds for 3.3, issues on Mageia |
46 |
46 if cross_compiling: |
47 # Add paths specified in the environment variables LDFLAGS and |
47 self.add_gcc_paths() |
48 @@ -703,8 +703,6 @@ |
48 @@ -741,8 +741,6 @@ |
49 depends = ['socketmodule.h']) ) |
49 depends = ['socketmodule.h']) ) |
50 # Detect SSL support for the socket module (via _ssl) |
50 # Detect SSL support for the socket module (via _ssl) |
51 search_for_ssl_incs_in = [ |
51 search_for_ssl_incs_in = [ |
52 - '/usr/local/ssl/include', |
52 - '/usr/local/ssl/include', |
53 - '/usr/contrib/ssl/include/' |
53 - '/usr/contrib/ssl/include/' |
54 ] |
54 ] |
55 ssl_incs = find_file('openssl/ssl.h', inc_dirs, |
55 ssl_incs = find_file('openssl/ssl.h', inc_dirs, |
56 search_for_ssl_incs_in |
56 search_for_ssl_incs_in |
57 @@ -715,8 +713,7 @@ |
57 @@ -753,8 +751,7 @@ |
58 if krb5_h: |
58 if krb5_h: |
59 ssl_incs += krb5_h |
59 ssl_incs += krb5_h |
60 ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs, |
60 ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs, |
61 - ['/usr/local/ssl/lib', |
61 - ['/usr/local/ssl/lib', |
62 - '/usr/contrib/ssl/lib/' |
62 - '/usr/contrib/ssl/lib/' |
63 + ['@l_prefix@/lib' |
63 + ['@l_prefix@/lib' |
64 ] ) |
64 ] ) |
65 |
65 |
66 if (ssl_incs is not None and |
66 if (ssl_incs is not None and |
67 @@ -836,14 +833,8 @@ |
67 @@ -866,14 +863,8 @@ |
68 # top of the normal inc_dirs. |
68 # top of the normal inc_dirs. |
69 db_inc_paths = [ |
69 db_inc_paths = [ |
70 '/usr/include/db4', |
70 '/usr/include/db4', |
71 - '/usr/local/include/db4', |
71 - '/usr/local/include/db4', |
72 '/opt/sfw/include/db4', |
72 '/opt/sfw/include/db4', |