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.

24 lines
657 B

  1. pfile=$( echo "$3" | grep protector | tr ' ' '\t' | tr -s '\t' | cut -f2 )
  2. if [ "$pfile" ]
  3. then
  4. tar --use-compress-program=bzip2 -xf $archdir/${pfile/.gz/.bz2}
  5. # Patch protector.dif a bit to apply against current gcc-3
  6. if test -f $1/package/base/gcc/$2/protector-hotfix.diff; then
  7. patch -p1 < $1/package/base/$2/protector-hotfix.diff
  8. fi
  9. # be careful if you enable this, you have to respect $pkg.
  10. # Set -fstack-protector as default?
  11. # [ $ROCKCFG_PKG_GCC[23]_STACKPRO = 1 ] && patch -p0 < protectonly.dif
  12. patch -p0 < protector.dif
  13. if [ $2 != gcc34 ]; then
  14. mv protector.{c,h} gcc/
  15. fi
  16. else
  17. echo "No stack-protector available for $2 ..."
  18. fi