[RFR]: 8186433: Compiler flag -arch=sparc should not be passed on linux-sparc

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Fri Aug 18 11:37:58 UTC 2017


Hi!

I am currently working on some fixes for the linux-sparc port.

The first problem is common/autoconf/platform.m4 tries passing the
compiler flags "-xarch=sparc" on sparcv9 which is not understood
by gcc on linux-sparc.

This problem is trivially solved by extending the test condition

	elif test "x$OPENJDK_$1_CPU" = xsparcv9;

to

	elif test "x$OPENJDK_$1_OS-$OPENJDK_$1_CPU" = xsolaris-sparcv9;

which is what the attached patch in the bug report does.

Note:

This is my very first issue opened in the Java Bug System, so please
bear with me if there are any issues with my report. FWIW, I still need
to understand how to push the patch to the webreview system.

Adrian

-- 
  .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the build-dev mailing list