私はFedora x86_64で作業しています。それは/lib64
、/usr/lib64
とお友達を使用しています。config.siteを使用して* .pcをビルドするときに@ libdir @が間違っていますか?
$ cat libcryptopp.pc.in
[email protected]@
[email protected][email protected]
[email protected]@
[email protected]@
...
マイconfig.site
は以下があります:私は、次の*.pc.in
ファイルを持っています。これはFedoraのconfig.site
から/usr/share/config.site
にコピーされました。コピーはconfig.site for vendor libs on Fedora x86_64のために使用されました。
$ cat /usr/local/share/config.site
...
# Note: This file includes also RHEL/Fedora fix for installing libraries into
# "/lib/lib64" on 64bit systems.
if test -n "$host"; then
# skip when cross-compiling
return 0
fi
if test "$prefix" = /usr \
|| { test "$prefix" = NONE && test "$ac_default_prefix" = /usr ; }
then
test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
test "$sharedstatedir" = '${prefix}/com' && sharedstatedir=/var
test "$localstatedir" = '${prefix}/var' && localstatedir=/var
ARCH=`uname -m`
for i in x86_64 ppc64 s390x aarch64; do
if test $ARCH = $i; then
test libdir='${exec_prefix}/lib64'
break
fi
done
fi
、Autoconfのが私の*.pc.in
ファイルを処理した後:
$ autoreconf --install --force
...
$ ./configure
...
$ cat libcryptopp.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
...
お知らせlibdir=${exec_prefix}/lib
、およびないlibdir=${exec_prefix}/lib64
を。
GCCは、パッケージ用の64ビットバイナリを構築しています。
$ gcc -dumpmachine
x86_64-redhat-linux
はなぜ間違ったlib/
ディレクトリが使用されている、と私はそれをどのように修正すればよい:私は-mx32
または-m32
を追加しませんでしたか?