[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
64-mode compile on AIX
From: |
cross |
Subject: |
64-mode compile on AIX |
Date: |
Wed, 12 Dec 2007 12:37:48 +0400 |
User-agent: |
KMail/1.7.2 |
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
- 64-mode compile on AIX,
cross <=