]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUILD] make it possible to pass alternative arch at build time
authorWilly Tarreau <w@1wt.eu>
Sat, 11 Apr 2009 17:45:50 +0000 (19:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 11 Apr 2009 18:32:54 +0000 (20:32 +0200)
commitef7341dc3ddc91275fe530e6b3d3e8ef337294fc
tree6b56a143a48c2bb55a96c149fd06a99bdd3ff92b
parentff443f94c60bd7c84ec86a7942975f498ebbba65
[BUILD] make it possible to pass alternative arch at build time

When trying to build a 32-bit binary on a 64-bit platform, we generally
need to pass "-m32" to gcc, which is not convenient with current makefile.
Note that this option requires gcc >= 3.

In order to ease parameter passing, a new ARCH= makefile option has been
added. If it receives a target architecture, according "-m32"/"-m64" and
"-march=xxxx" will be passed to gcc. Only the generic makefile has been
changed to support this option right now as the need only appeared on Linux.

The spec file now makes use of this option so that rpmbuild can automatically
build with the proper architecture.
Makefile
README
examples/haproxy.spec