$OpenBSD: patch-gcc_configure,v 1.2 2016/12/28 21:48:21 pascal Exp $
--- gcc/configure.orig	Sun Dec 11 17:23:04 2016
+++ gcc/configure	Sat Dec 24 09:08:31 2016
@@ -17882,7 +17882,7 @@ openbsd*)
     *)				need_version=no  ;;
   esac
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+  #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   shlibpath_var=LD_LIBRARY_PATH
   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     case $host_os in
@@ -21542,7 +21542,7 @@ openbsd*)
     *)				need_version=no  ;;
   esac
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+  #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   shlibpath_var=LD_LIBRARY_PATH
   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     case $host_os in
@@ -28639,6 +28639,7 @@ else
 fi
 
         ;;
+  *-*-openbsd*) gcc_cv_libc_provides_ssp=yes ;;
   *) gcc_cv_libc_provides_ssp=no ;;
     esac
 fi
@@ -28658,6 +28659,7 @@ if test "${enable_default_ssp+set}" = set; then :
 if test x$gcc_cv_libc_provides_ssp = xyes; then
   case "$target" in
     ia64*-*-*) enable_default_ssp=no ;;
+    hppa*-*-*) enable_default_ssp=no ;;
     *) enable_default_ssp=$enableval ;;
   esac
 else
