zfs-0.6.0_rc14-fix-libzpool-function-relocations.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 399f60c8b47f7513d078a7c181ff132e2cafdd15 Mon Sep 17 00:00:00 2001
  2. From: Richard Yao <ryao@cs.stonybrook.edu>
  3. Date: Tue, 5 Feb 2013 18:14:30 -0500
  4. Subject: [PATCH] Fix function relocations in libzpool
  5. binutils 2.23.1 fails in situations that generate function relocations
  6. on PowerPC and possibly other architectures. This causes linking of
  7. libzpool to fail because it depends on libnvpair. We add a dependency on
  8. libnvpair to lib/libzpool/Makefile.am to correct that.
  9. Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
  10. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
  11. Closes #1267
  12. ---
  13. lib/libzpool/Makefile.am | 3 ++-
  14. 1 file changed, 2 insertions(+), 1 deletion(-)
  15. diff --git a/lib/libzpool/Makefile.am b/lib/libzpool/Makefile.am
  16. index 3e62de6..cbba388 100644
  17. --- a/lib/libzpool/Makefile.am
  18. +++ b/lib/libzpool/Makefile.am
  19. @@ -94,7 +94,8 @@ libzpool_la_SOURCES = \
  20. libzpool_la_LIBADD = \
  21. $(top_builddir)/lib/libunicode/libunicode.la \
  22. - $(top_builddir)/lib/libuutil/libuutil.la
  23. + $(top_builddir)/lib/libuutil/libuutil.la \
  24. + $(top_builddir)/lib/libnvpair/libnvpair.la
  25. libzpool_la_LDFLAGS = -pthread -version-info 1:1:0
  26. --
  27. 1.7.10