c++ - Build 32 bit libcurl on 64 bit OSX -
i trying build 32 bit lib of curl osx, on 64 bit osx installation (yosemite 10.10.5), according the documentation. i've tried calling ./configure number of different arguments, 1 expect cover bases:
cflags='-m32 -arch i386' ldflags='-arch i386' ./configure --host=i386-apple
i've tried different hosts well, such x86-apple, x86-apple-darwin, i386-apple-darwin, etc. build without issues, far can see, when try build other 32 bit project links resultant dylib, following error message
warning: ignoring file [...]/libcurl.a, file built archive not architecture being linked (i386)
and several variations on
undefined symbols architecture i386: "_curl_easy_cleanup" [...]
a call to
lipo -info libcurl.a
yields following result
fatal error: [...]/lipo: archive no architecture specification: libcurl.a
what doing wrong? ./configure call badly formed, missing flag or argument? according installation instructions, people have compiled i386 mac os x, i'm assuming there's i'm missing
maybe it's late, since hit same wall... can try specifying in configure options:
./configure --build=i386-darwin --host=x86_64-darwin
as far can tell, host
denotes architecture of machine on building, while build
target architecture.
Comments
Post a Comment