Guest User

Untitled

a guest
Feb 16th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. $OpenBSD: patch-configure,v 1.14 2010/12/17 18:42:04 dcoppa Exp $
  2. --- configure.orig Wed Jul 28 15:18:22 2010
  3. +++ configure Thu Nov 18 10:07:33 2010
  4. @@ -629,6 +629,8 @@ if test $withsharedlibs = "yes"; then
  5. i686-*-kfreebsd*) natdynlink=true;;
  6. x86_64-*-kfreebsd*) natdynlink=true;;
  7. i386-*-gnu0.3) natdynlink=true;;
  8. + i[3456]86-*-openbsd*) natdynlink=true;;
  9. + x86_64-*-openbsd*) natdynlink=true;;
  10. esac
  11. fi
  12.  
  13. @@ -674,6 +676,7 @@ case "$host" in
  14. fi;;
  15. i[3456]86-*-gnu*) arch=i386; system=gnu;;
  16. mips-*-irix6*) arch=mips; system=irix;;
  17. + mips*-*-openbsd*) arch=mips; system=openbsd;;
  18. hppa1.1-*-hpux*) arch=hppa; system=hpux;;
  19. hppa2.0*-*-hpux*) arch=hppa; system=hpux;;
  20. hppa*-*-linux*) arch=hppa; system=linux;;
  21. @@ -683,8 +686,11 @@ case "$host" in
  22. powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;;
  23. powerpc-*-darwin*) arch=power; system=rhapsody
  24. if $arch64; then model=ppc64; else model=ppc; fi;;
  25. + powerpc-*-openbsd*) arch=power; model=ppc; system=bsd;;
  26. arm*-*-linux*) arch=arm; system=linux;;
  27. arm*-*-gnu*) arch=arm; system=gnu;;
  28. + arm*-*-openbsd*) arch=arm; system=openbsd;;
  29. + zaurus*-*-openbsd*) arch=arm; system=openbsd;;
  30. ia64-*-linux*) arch=ia64; system=linux;;
  31. ia64-*-gnu*) arch=ia64; system=gnu;;
  32. ia64-*-freebsd*) arch=ia64; system=freebsd;;
  33. @@ -784,11 +790,15 @@ if test -n "$asppoption"; then aspp="$asppoption"; fi
  34. cc_profile='-pg'
  35. case "$arch,$model,$system" in
  36. alpha,*,digital) profiling='prof';;
  37. + alpha,*,openbsd) profiling='prof';;
  38. i386,*,linux_elf) profiling='prof';;
  39. i386,*,gnu) profiling='prof';;
  40. i386,*,bsd_elf) profiling='prof';;
  41. amd64,*,macosx) profiling='prof';;
  42. i386,*,macosx) profiling='prof';;
  43. + amd64,*,openbsd) profiling='prof';;
  44. + power,*,bsd) profiling='prof';;
  45. + sparc,*,bsd) profiling='prof';;
  46. sparc,*,solaris)
  47. profiling='prof'
  48. case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;;
  49. @@ -1570,11 +1580,11 @@ fi
  50.  
  51. # Look for BFD library
  52.  
  53. -if ./hasgot -i bfd.h && \
  54. - ./hasgot -lbfd -ldl -liberty -lz bfd_openr; then
  55. +if ./hasgot -I${OPENBSD_LOCALBASE}/include -i bfd.h && \
  56. + ./hasgot -L${OPENBSD_LOCALBASE}/lib -lbfd -liberty -lz bfd_openr; then
  57. echo "BFD library found."
  58. echo "#define HAS_LIBBFD" >> s.h
  59. - echo "LIBBFD_LINK=-lbfd -ldl -liberty -lz" >> Makefile
  60. + echo "LIBBFD_LINK=-I${OPENBSD_LOCALBASE}/include -L${OPENBSD_LOCALBASE}/lib -lbfd -liberty -lz" >> Makefile
  61. else
  62. echo "BFD library not found, 'objinfo' will be unable to display info on .cmxs files"
  63. echo "LIBBFD_LINK=" >> Makefile
Add Comment
Please, Sign In to add comment