]> granicus.if.org Git - python/commitdiff
Fix for SF bug #117606:
authorGreg Ward <gward@python.net>
Tue, 7 Nov 2000 15:44:21 +0000 (15:44 +0000)
committerGreg Ward <gward@python.net>
Tue, 7 Nov 2000 15:44:21 +0000 (15:44 +0000)
  - when compiling with GCC on Solaris, use "$(CC) -shared" instead
    of "$(CC) -G" to generate .so files
  - when compiling with GCC on any platform, add "-fPIC" to OPT
    (without this, "$(CC) -shared" dies horribly)

configure
configure.in

index eb0d9acadb7cc99034ef76f510a8725903154d29..ced8f30ec25b8d0e3e6a0cb00b0b197cfce42244 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# From configure.in Revision: 1.17
+# From configure.in Revision: 1.178
 
 # Guess values for system-dependent variables and create Makefiles.
 # Generated automatically using autoconf version 2.13 
@@ -1193,8 +1193,8 @@ then
        case $GCC in
        yes)
                case $ac_cv_prog_cc_g in
-               yes)    OPT="-g -O2 -Wall -Wstrict-prototypes";;
-               *)      OPT="-O2 -Wall -Wstrict-prototypes";;
+               yes)    OPT="-g -O2 -Wall -Wstrict-prototypes -fPIC";;
+               *)      OPT="-O2 -Wall -Wstrict-prototypes -fPIC";;
                esac
                ;;
        *)      OPT="-O";;
@@ -2650,7 +2650,7 @@ then
        SunOS/4*) LDSHARED="ld";;
        SunOS/5*) 
                if test "$GCC" = "yes"
-               then LDSHARED='$(CC) -G'
+               then LDSHARED='$(CC) -shared'
                else LDSHARED="ld -G";
                fi ;;
        hp*|HP*) LDSHARED="ld -b";;
@@ -4839,7 +4839,7 @@ else
 int main() {
 
 /* Ultrix mips cc rejects this.  */
-typedef int charset[2]; const charset x = {0,0};
+typedef int charset[2]; const charset x;
 /* SunOS 4.1.1 cc rejects this.  */
 char const *const *ccp;
 char **p;
@@ -4914,7 +4914,7 @@ for ac_kw in inline __inline__ __inline; do
 #include "confdefs.h"
 
 int main() {
-} int $ac_kw foo() {
+} $ac_kw foo() {
 ; return 0; }
 EOF
 if { (eval echo configure:4921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
index f2017480bbda47b1ace90aa9c02679067b93659f..8bfb14788c6a314c1e5d8acab74e410627e888c0 100644 (file)
@@ -308,8 +308,8 @@ then
        case $GCC in
        yes)
                case $ac_cv_prog_cc_g in
-               yes)    OPT="-g -O2 -Wall -Wstrict-prototypes";;
-               *)      OPT="-O2 -Wall -Wstrict-prototypes";;
+               yes)    OPT="-g -O2 -Wall -Wstrict-prototypes -fPIC";;
+               *)      OPT="-O2 -Wall -Wstrict-prototypes -fPIC";;
                esac
                ;;
        *)      OPT="-O";;
@@ -564,7 +564,7 @@ then
        SunOS/4*) LDSHARED="ld";;
        SunOS/5*) 
                if test "$GCC" = "yes"
-               then LDSHARED='$(CC) -G'
+               then LDSHARED='$(CC) -shared'
                else LDSHARED="ld -G";
                fi ;;
        hp*|HP*) LDSHARED="ld -b";;