2
1

gstreamer-0.10.25-fix-unaligned-detectiob-for-x86-64.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. [PATCH] gst-arch.m4: fix unaligned detection for x86-64 when cross compiling
  2. Submitted upstream at https://bugzilla.gnome.org/show_bug.cgi?id=607317
  3. Commit 4221e9dc (amd64/x86_64 allows unaligned memory access too) added
  4. x86-64 to the unaligned access whitelist, but missed the trailing
  5. wildcards, so the test never succeeds (host is something like
  6. x86_64-unknown-linux-gnu).
  7. When building natively, this isn't a big deal as the AC_TRY_RUN test
  8. correctly detects it, but that doesn't work when cross compiling so
  9. the build dies with:
  10. configure: error: cannot run test program while cross compiling
  11. See `config.log' for more details.
  12. Fix it by adding the trailing wildcards.
  13. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  14. ---
  15. configure | 2 +-
  16. 1 file changed, 1 insertion(+), 1 deletion(-)
  17. Index: gstreamer-0.10.25/configure
  18. ===================================================================
  19. --- gstreamer-0.10.25.orig/configure
  20. +++ gstreamer-0.10.25/configure
  21. @@ -15655,7 +15655,7 @@ $as_echo_n "checking if unaligned memory
  22. $as_echo_n "(blacklisted) " >&6
  23. as_cv_unaligned_access=no
  24. ;;
  25. - i?86*|x86_64|amd64|powerpc*|m68k*|cris*)
  26. + i?86*|x86_64*|amd64*|powerpc*|m68k*|cris*)
  27. $as_echo_n "(whitelisted) " >&6
  28. as_cv_unaligned_access=yes
  29. ;;