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.

20 lines
625 B

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