'use make configure/install to create a fat binary [duplicate]
On a Linux machine I can do:
./configure
make install
to build from source.
However, when I copy that build to another machine, obviously some libraries will be missing. I've Googled to the best of my abilities but I can't seem to find a way to build a "fat" binary, with all dependencies packaged with it.
Solution 1:[1]
you can run configure like this:
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" CPP="gcc -E" CXXCPP="g++ -E"
see this for detailed info:
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Multiple-Architectures.html
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Suraj Rao |