构建 apr-util 64 位 Mac OS X 构建 32 位版本
我目前正在通过配置和构建两次并将输出与 lipo 组合来构建 apr 的 32/64 位版本,(apr-1.4.5) 我试图用 apr-util-1.4.1 用 64 位版本完成同样的事情,但我所有的输出似乎都是 i386 32 位, 我正在尝试使用以下行进行配置和构建:
./configure --target=x86_64 --prefix=`pwd`/64bit --with-apr=`pwd`/../apr-1.4.5 CFLAGS="-m64" && make all && make install
我还尝试了以下内容:
./configure --build=x86_64 --prefix=`pwd`/64bit --with-apr=`pwd`/../apr-1.4.5 && make all && make install
./configure --build=x86_64 --prefix=`pwd`/64bit --with-apr=`pwd`/../apr-1.4.5 CFLAGS="-m64" && make all && make install
以及各种其他变体,大概有人正在构建 x86_64 版本。
澄清一下,我正在查看静态库,.a 文件,而不是动态库。
I am currently building a 32/64 bit version of apr by configuring and building twice and combining the output with lipo, (apr-1.4.5)
I am trying to accomplish the same thing with the 64-bit version with apr-util-1.4.1, but all of my output seems to be i386 32bit,
I am trying to configure and build with the following line:
./configure --target=x86_64 --prefix=`pwd`/64bit --with-apr=`pwd`/../apr-1.4.5 CFLAGS="-m64" && make all && make install
I have also tried the following:
./configure --build=x86_64 --prefix=`pwd`/64bit --with-apr=`pwd`/../apr-1.4.5 && make all && make install
./configure --build=x86_64 --prefix=`pwd`/64bit --with-apr=`pwd`/../apr-1.4.5 CFLAGS="-m64" && make all && make install
and various other variants, presumably somebody is building a x86_64 version.
to clarify I am looking at the static library, the .a file, not the dynamic library.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在rules.mk文件中,有一个CFLAG被设置为-m32,它强制32位,这是由./configure脚本添加的,必须在配置后删除...
In the rules.mk file there is a CFLAG that is getting set to -m32 which forces 32 bit, this is added by the ./configure script and must be removed after configure...