[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 64-mode compile on AIX
From: |
Bob Friesenhahn |
Subject: |
Re: 64-mode compile on AIX |
Date: |
Wed, 12 Dec 2007 09:34:17 -0600 (CST) |
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, address@hidden 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: address@hidden
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/