patch-config 555 B

1234567891011121314151617
  1. $OpenBSD: patch-config,v 1.3 2017/05/25 14:39:24 sthen Exp $
  2. Don't misdetect OpenBSD/i386 as a.out when /usr/lib/libc.so.XX.Y.a
  3. is present (for /etc/rc rebuildlibs).
  4. Index: config
  5. --- config.orig
  6. +++ config
  7. @@ -762,6 +762,7 @@ case "$GUESSOS" in
  8. sparc64-*-*bsd*) OUT="BSD-sparc64" ;;
  9. ia64-*-*bsd*) OUT="BSD-ia64" ;;
  10. amd64-*-*bsd*) OUT="BSD-x86_64" ;;
  11. + *86*-*-openbsd) OUT="BSD-x86-elf" ;;
  12. *86*-*-*bsd*) # mimic ld behaviour when it's looking for libc...
  13. if [ -L /usr/lib/libc.so ]; then # [Free|Net]BSD
  14. libc=/usr/lib/libc.so