Re: [PATCH] Make git compile with SUNs forte12 compiler
- From
- Thomas Glanzmann <thomas@glanzmann.de>
- Date
- May 13, 2007, 10:30 UTC
- Message-ID
- <20070513103038.GC18546@cip.informatik.uni-erlangen.de>
- In-Reply-To
- <pan.2007.05.13.09.47.32@free.fr>
Hello,
[ Junio please drop the patch, if you thought about putting it upstream ]
> Did you understand what you did ?
I do. But my objective wasn't get that function inline but get git to compile under forte12. However. After you pushed me in the right direction I read the compiler documentation and found a compiler option called "-features=no%extinl" which makes it possible to compile git as is using forte12.
So if anyone tries to build git for Solaris using forte12 try this commandline:
export PATH="/opt/forte12/x86/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/openwin/bin"
/opt/csw/bin/gmake \
CFLAGS='-O -features=no%extinl' \
CC=/opt/forte12/x86/SUNWspro/bin/cc \
DESTDIR=/var/tmp/sithglan-pkg/git-1.5.1.4-buildroot \
ETC_GITCONFIG=/etc/gitconfig \
INSTALL=/opt/csw/bin/ginstall \
NO_CURL=1 \
NO_EXPAT=1 \
NO_ICONV=1 \
NO_OPENSSL=1 \
TAR=/opt/csw/bin/gtar \
mandir=/usr/share/man \
prefix=/usr \
installThanks,
Thomas