]> granicus.if.org Git - python/commitdiff
Merged revisions 87639 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 2 Jan 2011 19:37:45 +0000 (19:37 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 2 Jan 2011 19:37:45 +0000 (19:37 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87639 | antoine.pitrou | 2011-01-02 20:34:03 +0100 (dim., 02 janv. 2011) | 4 lines

  Issue #10475: Don't hardcode compilers for LDSHARED/LDCXXSHARED on NetBSD
  and DragonFly BSD.  Patch by Nicolas Joly.
........

Misc/ACKS
Misc/NEWS
configure
configure.in

index b168c9a6d395ab1c342d3c34cb9167364a802543..b6fd1a890522dce9e0622f8c910047bbf7563c0f 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -397,6 +397,7 @@ Orjan Johansen
 Fredrik Johansson
 Gregory K. Johnson
 Simon Johnston
+Nicolas Joly
 Evan Jones
 Jeremy Jones
 Richard Jones
index 12cee4067a75d39d5389665c664c3fa7b7a1379b..bbbbc97b35e6fc684687795d8b732eb36fdecd0d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -92,6 +92,12 @@ Extension Modules
 
 - Issue #678250: Make mmap flush a noop on ACCESS_READ and ACCESS_COPY.
 
+Build
+-----
+
+- Issue #10475: Don't hardcode compilers for LDSHARED/LDCXXSHARED on NetBSD
+  and DragonFly BSD.  Patch by Nicolas Joly.
+
 Tests
 -----
 
index b29fca12b2c7dbd38733194c15d0d87f3bf701a2..b80c6d378dad08ad95ce9becb48f1de203a3afe4 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 86076 .
+# From configure.in Revision: 86848 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.65 for python 2.7.
 #
@@ -1934,11 +1934,11 @@ else
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 $ac_includes_default
-            enum { N = $2 / 2 - 1 };
 int
 main ()
 {
-static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
+static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
+            0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
 test_array [0] = 0
 
   ;
@@ -1949,11 +1949,11 @@ if ac_fn_c_try_compile "$LINENO"; then :
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 $ac_includes_default
-               enum { N = $2 / 2 - 1 };
 int
 main ()
 {
-static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
+static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
+               ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
                 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
 test_array [0] = 0
 
@@ -7649,8 +7649,8 @@ then
                                esac
                fi;;
        NetBSD*|DragonFly*)
-               LDSHARED="cc -shared"
-               LDCXXSHARED="c++ -shared";;
+               LDSHARED="$(CC) -shared"
+               LDCXXSHARED="$(CXX) -shared";;
        OpenUNIX*|UnixWare*)
                if test "$GCC" = "yes" ; then
                        LDSHARED='$(CC) -shared'
@@ -14309,8 +14309,8 @@ esac
 
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 # Files that config.status was made for.
-config_files="$ac_config_files"
-config_headers="$ac_config_headers"
+config_files="`echo $ac_config_files`"
+config_headers="`echo $ac_config_headers`"
 
 _ACEOF
 
index a61eb4569c03d05dbeeef55d0f391228b5c6c598..d0d0280ad2b4edfaf280908caebe4799ee87bd85 100644 (file)
@@ -1875,8 +1875,8 @@ then
                                esac
                fi;;
        NetBSD*|DragonFly*)
-               LDSHARED="cc -shared"
-               LDCXXSHARED="c++ -shared";;
+               LDSHARED="$(CC) -shared"
+               LDCXXSHARED="$(CXX) -shared";;
        OpenUNIX*|UnixWare*)
                if test "$GCC" = "yes" ; then
                        LDSHARED='$(CC) -shared'