bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Configure problem on Solaris 8


From: Andrew Benham
Subject: Configure problem on Solaris 8
Date: Thu, 29 Jul 2004 12:09:49 +0100
User-agent: Mutt/1.4.1i

GMP Version   4.1.3
OS            Solaris 8
Compiler      Forte Developer 7 C 5.4 2002/03/09


configure fails with:

...
checking how to switch to text section... .text
checking how to switch to data section... .data
checking what assembly label suffix to use... :
checking how to export a symbol... .globl
checking if globals are prefixed by underscore... configure: error: Test 
program unexpectedly links both with and without underscore.


Reason:
We set "LDFLAGS=-xildoff" in the environment, but the test
program doesn't use $LDFLAGS in the link phase.


Fix:

Adding $LDFLAGS to the link phase solves the problem.

Suggested patch to acinclude.m4:

diff -u -p -r1.1 -r1.2
--- upstream/gmp/acinclude.m4   2002/09/08 00:02:19     1.1
+++ upstream/gmp/acinclude.m4   2004/07/29 10:31:35     1.2
@@ -1010,7 +1010,7 @@ EOF
 EOF
     ;;
   esac
-  gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftes1.c >&AC_FD_CC && $CCAS $CFLAGS 
conftes2.s >&AC_FD_CC && $CC $CFLAGS conftes1.$OBJEXT conftes2.$OBJEXT 
>&AC_FD_CC"
+  gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftes1.c >&AC_FD_CC && $CCAS $CFLAGS 
conftes2.s >&AC_FD_CC && $CC $CFLAGS $LDFLAGS conftes1.$OBJEXT conftes2.$OBJEXT 
>&AC_FD_CC"
   if AC_TRY_EVAL(gmp_compile); then
     eval tmp_result$tmp_underscore=yes
   else

-- 
Andrew Benham               address@hidden          address@hidden
Finchley, London N3 2QQ, U.K.   Tel: 020 8495 6343  Fax: 020 8495 6037




reply via email to

[Prev in Thread] Current Thread [Next in Thread]