From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Thu, 26 Nov 2015 22:34:06 +0100 Subject: [Buildroot] [PATCH] jimtcl: fix sparc64 compile In-Reply-To: <20151123164853.GA29207@waldemar-brodkorb.de> (Waldemar Brodkorb's message of "Mon, 23 Nov 2015 17:48:53 +0100") References: <20151123164853.GA29207@waldemar-brodkorb.de> Message-ID: <87vb8otpgx.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Waldemar" == Waldemar Brodkorb writes: > It is general safe to use -fPIC for all architectures. > -fpic breaks sparc64 compile. > Generally gcc just optimize position independent code > for m68k, powerpc and sparc with -fpic. > The size differences are minimal, f.e. for powerpc: > text data bss dec hex filename > 235983 5336 684 242003 3b153 output/target/usr/lib/libjim.0.75 > 236255 8456 684 245395 3be93 output/target/usr/lib/libjim.so.0.75 > So instead of keeping special settings for sparc64 it would be better > to always use -fPIC in general. > Runtime tested on Qemu ARM, MIPS, PPC and SPARC64. > Fixes: > http://autobuild.buildroot.net/results/98f391ad13f22828c022f185c0166daabdb4c1ad/ > Signed-off-by: Waldemar Brodkorb Committed after changing the comment as suggested by Thomas, thanks. -- Bye, Peter Korsgaard