File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -652,7 +652,9 @@ if [ "$PORTABLE" == "" ] || [ "$PORTABLE" == 0 ]; then
652652 if test -n " ` echo $TARGET_ARCHITECTURE | grep ^ppc64` " ; then
653653 # Tune for this POWER processor, treating '+' models as base models
654654 POWER=` LD_SHOW_AUXV=1 /bin/true | grep AT_PLATFORM | grep -E -o power[0-9]+`
655- COMMON_FLAGS=" $COMMON_FLAGS -mcpu=$POWER -mtune=$POWER "
655+ if [ -n " $POWER " ]; then
656+ COMMON_FLAGS=" $COMMON_FLAGS -mcpu=$POWER -mtune=$POWER "
657+ fi
656658 elif test -n " ` echo $TARGET_ARCHITECTURE | grep -e^arm -e^aarch64` " ; then
657659 # TODO: Handle this with approprite options.
658660 COMMON_FLAGS=" $COMMON_FLAGS "
@@ -679,7 +681,10 @@ if [ "$PORTABLE" == "" ] || [ "$PORTABLE" == 0 ]; then
679681else
680682 # PORTABLE specified
681683 if [ " $PORTABLE " == 1 ]; then
682- if test -n " ` echo $TARGET_ARCHITECTURE | grep ^s390x` " ; then
684+ if test -n " ` echo $TARGET_ARCHITECTURE | grep ^ppc64` " ; then
685+ # For portable powerPC builds, use generic power8
686+ COMMON_FLAGS=" $COMMON_FLAGS -mcpu=power8 -mtune=power8 "
687+ elif test -n " ` echo $TARGET_ARCHITECTURE | grep ^s390x` " ; then
683688 COMMON_FLAGS=" $COMMON_FLAGS -march=z196 "
684689 elif test -n " ` echo $TARGET_ARCHITECTURE | grep ^riscv64` " ; then
685690 COMMON_FLAGS=" $COMMON_FLAGS -march=rv64gc"
You can’t perform that action at this time.
0 commit comments