mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
457 B

  1. if [ "$ROCKCFG_SPARC_OPT" != "generic" ] ; then
  2. # Append options so the gcc -V option always comes first.
  3. var_append GCC_WRAPPER_APPEND " " "-mcpu=$ROCKCFG_SPARC_OPT"
  4. case "$ROCKCFG_SPARC_OPT" in
  5. v7) tune=cypress ;;
  6. v8) tune=supersparc ;;
  7. v9) tune=ultrasparc ;;
  8. esac
  9. [ "$tune" ] && var_append GCC_WRAPPER_APPEND " " "-mtune=$tune"
  10. if [ $ROCKCFG_SPARC_BITS == 64 ] ; then
  11. var_append GCC_WRAPPER_APPEND " " "-Wa,-Av9a -mno-app-regs"
  12. fi
  13. fi