There was an earlier discussion on a libtool list regarding this issue. The easiest workaround is to define the environment variable OBJECT_MODE (OBJECT_MODE=64) before running configure or building any code. There is an ar option for supporting either type of object but older versions of the build tools do not support it so it is not reliable.

Bob

On Wed, 12 Dec 2007, [EMAIL PROTECTED] wrote:

Hi.
I am trying to make shared library on AIX in 64-mode.
In configure.ac i usually use this kind of code
aix*)
   if test "x$enable_64" = "xyes";then
       CMN_FLAGS="$CMN_FLAGS -q64"

   else
   CMN_FLAGS="$CMN_FLAGS -q32"
   fi;;
esac
CFLAGS="$CFLAGS $CMN_FLAGS"
CXXFLAGS="$CXXFLAGS $CMN_FLAGS "

But in linking the library i get an error from tool "ar" that you need to use
-X options.
I add this line which resolve the problem
  AR_FLAGS="-X 64 $AR_FLAGS"
But if I add the c++ code and other tools for linking will be used i have
problem with linking too.
I think that using AR_FLAGS to resolve given problem may be not "good"
decision.
The question is how to do it "right" way?
--
______________________________________________________________
ÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ, ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿ
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿ "ÿÿÿÿÿÿÿÿÿÿÿÿ-ÿÿÿÿÿÿ"
WWW:  www.cryptopro.ru
Mail: [EMAIL PROTECTED]


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool


======================================
Bob Friesenhahn
[EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to