[kaffe] CVS kaffe (robilad): Fixed relinking problems on 64 bit platforms in Debian
Kaffe CVS
cvs-commits at kaffe.org
Sun Mar 20 14:42:20 PST 2005
PatchSet 5576
Date: 2005/03/20 22:37:42
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Fixed relinking problems on 64 bit platforms in Debian
2003-03-20 Dalibor Topic <robilad at kaffe.org>
* configure.ac: Don't check for no-cpp-precomp. It confuses
libtool on 64 bit platforms to think that -fPIC is not supported,
leading to fascinating relinking errors. A better way for older
darwin release must be found to deal with preprocessor breakage.
It also lead to tons of pointless warning messages on all systems
beside the -no-cpp-supporting ones, so it needs to go in this form.
* replace/Makefile.am (libreplace_la_LDFLAGS): Removed -export-dynamic.
Members:
ChangeLog:1.3750->1.3751
configure:1.434->1.435
configure.ac:1.124->1.125
replace/Makefile.am:1.8->1.9
replace/Makefile.in:1.79->1.80
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3750 kaffe/ChangeLog:1.3751
--- kaffe/ChangeLog:1.3750 Sun Mar 20 20:35:49 2005
+++ kaffe/ChangeLog Sun Mar 20 22:37:42 2005
@@ -1 +1,12 @@
+2003-03-20 Dalibor Topic <robilad at kaffe.org>
+
+ * configure.ac: Don't check for no-cpp-precomp. It confuses
+ libtool on 64 bit platforms to think that -fPIC is not supported,
+ leading to fascinating relinking errors. A better way for older
+ darwin release must be found to deal with preprocessor breakage.
+ It also lead to tons of pointless warning messages on all systems
+ beside the -no-cpp-supporting ones, so it needs to go in this form.
+
+ * replace/Makefile.am (libreplace_la_LDFLAGS): Removed -export-dynamic.
+
See ChangeLog.16 for earlier changes.
Index: kaffe/configure
diff -u kaffe/configure:1.434 kaffe/configure:1.435
--- kaffe/configure:1.434 Wed Mar 16 12:49:42 2005
+++ kaffe/configure Sun Mar 20 22:37:44 2005
@@ -7875,99 +7875,7 @@
## required for old darwin versions because Apples'
## gcc falls appart all over assembler statements
## and produces a ton of false warnings otherwise.
-echo "$as_me:$LINENO: checking CFLAGS for gcc -no-cpp-precomp" >&5
-echo $ECHO_N "checking CFLAGS for gcc -no-cpp-precomp... $ECHO_C" >&6
-if test "${ac_cv_cflags_gcc_option__no_cpp_precomp+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_cflags_gcc_option__no_cpp_precomp="no, unknown"
-
-
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
- ac_save_CFLAGS="$CFLAGS"
-for ac_arg in "-pedantic % -no-cpp-precomp" #
-do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-return 0;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_cflags_gcc_option__no_cpp_precomp=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-done
- CFLAGS="$ac_save_CFLAGS"
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__no_cpp_precomp" >&5
-echo "${ECHO_T}$ac_cv_cflags_gcc_option__no_cpp_precomp" >&6
-case ".$ac_cv_cflags_gcc_option__no_cpp_precomp" in
- .ok|.ok,*) ;;
- .|.no|.no,*) ;;
- *)
- if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__no_cpp_precomp " 2>&1 >/dev/null
- then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__no_cpp_precomp") >&5
- (: CFLAGS does contain $ac_cv_cflags_gcc_option__no_cpp_precomp) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
- else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__no_cpp_precomp\"") >&5
- (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__no_cpp_precomp") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
- CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__no_cpp_precomp"
- fi
- ;;
-esac
-
+## AX_CFLAGS_GCC_OPTION([-no-cpp-precomp])
@@ -10067,7 +9975,7 @@
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 10070 "configure"' > conftest.$ac_ext
+ echo '#line 9978 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -11424,7 +11332,7 @@
# Provide some information about the compiler.
-echo "$as_me:11427:" \
+echo "$as_me:11335:" \
"checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
@@ -12497,11 +12405,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:12500: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:12408: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:12504: \$? = $ac_status" >&5
+ echo "$as_me:12412: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@@ -12752,11 +12660,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:12755: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:12663: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:12759: \$? = $ac_status" >&5
+ echo "$as_me:12667: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@@ -12812,11 +12720,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:12815: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:12723: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:12819: \$? = $ac_status" >&5
+ echo "$as_me:12727: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -15016,7 +14924,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 15019 "configure"
+#line 14927 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -15114,7 +15022,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 15117 "configure"
+#line 15025 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -17338,11 +17246,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:17341: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:17249: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:17345: \$? = $ac_status" >&5
+ echo "$as_me:17253: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@@ -17398,11 +17306,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:17401: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:17309: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:17405: \$? = $ac_status" >&5
+ echo "$as_me:17313: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -18765,7 +18673,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 18768 "configure"
+#line 18676 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -18863,7 +18771,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 18866 "configure"
+#line 18774 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -19718,11 +19626,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:19721: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:19629: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:19725: \$? = $ac_status" >&5
+ echo "$as_me:19633: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@@ -19778,11 +19686,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:19781: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:19689: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:19785: \$? = $ac_status" >&5
+ echo "$as_me:19693: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -21842,11 +21750,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:21845: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:21753: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:21849: \$? = $ac_status" >&5
+ echo "$as_me:21757: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@@ -22097,11 +22005,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:22100: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:22008: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:22104: \$? = $ac_status" >&5
+ echo "$as_me:22012: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@@ -22157,11 +22065,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:22160: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:22068: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:22164: \$? = $ac_status" >&5
+ echo "$as_me:22072: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -24361,7 +24269,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 24364 "configure"
+#line 24272 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -24459,7 +24367,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 24462 "configure"
+#line 24370 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
Index: kaffe/configure.ac
diff -u kaffe/configure.ac:1.124 kaffe/configure.ac:1.125
--- kaffe/configure.ac:1.124 Wed Mar 16 12:49:47 2005
+++ kaffe/configure.ac Sun Mar 20 22:37:49 2005
@@ -180,7 +180,7 @@
## required for old darwin versions because Apples'
## gcc falls appart all over assembler statements
## and produces a ton of false warnings otherwise.
-AX_CFLAGS_GCC_OPTION([-no-cpp-precomp])
+## AX_CFLAGS_GCC_OPTION([-no-cpp-precomp])
GCC_ATTRIBUTE_ALWAYS_INLINE
GCC_ATTRIBUTE_CONST
Index: kaffe/replace/Makefile.am
diff -u kaffe/replace/Makefile.am:1.8 kaffe/replace/Makefile.am:1.9
--- kaffe/replace/Makefile.am:1.8 Mon Nov 22 17:24:15 2004
+++ kaffe/replace/Makefile.am Sun Mar 20 22:37:50 2005
@@ -16,7 +16,6 @@
libreplace_la_LDFLAGS = \
$(KVMLIBFLAGS) \
- -export-dynamic \
-release $(PACKAGE_VERSION)
libreplace_la_SOURCES = \
Index: kaffe/replace/Makefile.in
diff -u kaffe/replace/Makefile.in:1.79 kaffe/replace/Makefile.in:1.80
--- kaffe/replace/Makefile.in:1.79 Wed Mar 16 10:31:40 2005
+++ kaffe/replace/Makefile.in Sun Mar 20 22:37:50 2005
@@ -386,7 +386,6 @@
native_LTLIBRARIES = libreplace.la
libreplace_la_LDFLAGS = \
$(KVMLIBFLAGS) \
- -export-dynamic \
-release $(PACKAGE_VERSION)
libreplace_la_SOURCES = \
More information about the kaffe
mailing list