000-relocatable.patch 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. --- a/libltdl/config/general.m4sh
  2. +++ b/libltdl/config/general.m4sh
  3. @@ -53,7 +53,7 @@ test "${ECHO+set}" = set || ECHO=${as_ec
  4. : ${MKDIR="mkdir"}
  5. : ${MV="mv -f"}
  6. : ${RM="rm -f"}
  7. -: ${SED="@SED@"}
  8. +test "${STAGING_DIR+set}" = set && ${SED="$STAGING_DIR/../host/bin/sed"} || ${SED="@SED@"}
  9. : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  10. : ${Xsed="$SED -e 1s/^X//"}
  11. --- a/libtoolize.in
  12. +++ b/libtoolize.in
  13. @@ -334,7 +334,11 @@ test "${ECHO+set}" = set || ECHO=${as_ec
  14. : ${MKDIR="mkdir"}
  15. : ${MV="mv -f"}
  16. : ${RM="rm -f"}
  17. -: ${SED="@SED@"}
  18. +if test -n "$STAGING_DIR"; then
  19. + : ${SED="$STAGING_DIR/../host/bin/sed"}
  20. +else
  21. + : ${SED="@SED@"}
  22. +fi
  23. : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  24. : ${Xsed="$SED -e 1s/^X//"}
  25. @@ -2476,10 +2480,17 @@ func_check_macros ()
  26. # Locations for important files:
  27. prefix=@prefix@
  28. - datadir=@datadir@
  29. - pkgdatadir=@pkgdatadir@
  30. - pkgltdldir=@pkgdatadir@
  31. - aclocaldir=@aclocaldir@
  32. + if test -n "$STAGING_DIR"; then
  33. + datadir="$STAGING_DIR/../host/share"
  34. + pkgdatadir="$STAGING_DIR/../host/share/libtool"
  35. + pkgltdldir="$STAGING_DIR/../host/share/libtool"
  36. + aclocaldir="$STAGING_DIR/../host/share/aclocal"
  37. + else
  38. + datadir=@datadir@
  39. + pkgdatadir=@pkgdatadir@
  40. + pkgltdldir=@pkgdatadir@
  41. + aclocaldir=@aclocaldir@
  42. + fi
  43. auxdir=
  44. macrodir=
  45. configure_ac=configure.in
  46. --- a/libtoolize.m4sh
  47. +++ b/libtoolize.m4sh
  48. @@ -1450,10 +1450,17 @@ func_check_macros ()
  49. # Locations for important files:
  50. prefix=@prefix@
  51. - datadir=@datadir@
  52. - pkgdatadir=@pkgdatadir@
  53. - pkgltdldir=@pkgdatadir@
  54. - aclocaldir=@aclocaldir@
  55. + if test -n "$STAGING_DIR"; then
  56. + datadir="$STAGING_DIR/../host/share"
  57. + pkgdatadir="$STAGING_DIR/../host/share/libtool"
  58. + pkgltdldir="$STAGING_DIR/../host/share/libtool"
  59. + aclocaldir="$STAGING_DIR/../host/share/aclocal"
  60. + else
  61. + datadir=@datadir@
  62. + pkgdatadir=@pkgdatadir@
  63. + pkgltdldir=@pkgdatadir@
  64. + aclocaldir=@aclocaldir@
  65. + fi
  66. auxdir=
  67. macrodir=
  68. configure_ac=configure.in
  69. --- a/libltdl/m4/libtool.m4
  70. +++ b/libltdl/m4/libtool.m4
  71. @@ -875,9 +875,8 @@ dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  72. # ----------------
  73. m4_defun([_LT_TAG_COMPILER],
  74. [AC_REQUIRE([AC_PROG_CC])dnl
  75. -
  76. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  77. -_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  78. +_LT_DECL([LTCFLAGS], [CFLAGS], ["-O2 -I\${STAGING_DIR:-$STAGING_DIR}/../host/include"], [LTCC compiler flags])dnl
  79. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  80. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  81. @@ -7544,9 +7543,8 @@ AC_SUBST([DLLTOOL])
  82. # as few characters as possible. Prefer GNU sed if found.
  83. m4_defun([_LT_DECL_SED],
  84. [AC_PROG_SED
  85. -test -z "$SED" && SED=sed
  86. Xsed="$SED -e 1s/^X//"
  87. -_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  88. +_LT_DECL([], [SED], ["\${STAGING_DIR:-$STAGING_DIR}/../host/bin/sed"], [A sed program that does not truncate output])
  89. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  90. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  91. ])# _LT_DECL_SED