From 6481bdc3e7ac2ee861446966acb1c0b671660838 Mon Sep 17 00:00:00 2001
From: Brian Behlendorf <behlendorf1@llnl.gov>
Date: Wed, 17 Dec 2008 16:16:22 -0800
Subject: [PATCH] Add -lm linker flag

---
 cmd/zfs/Makefile.am   | 2 +-
 cmd/ztest/Makefile.am | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/cmd/zfs/Makefile.am b/cmd/zfs/Makefile.am
index 9edb8c5872..d12a32f36a 100644
--- a/cmd/zfs/Makefile.am
+++ b/cmd/zfs/Makefile.am
@@ -25,4 +25,4 @@ zfs_LDADD = \
 	$(top_builddir)/lib/libzpool/libzpool.la \
 	$(top_builddir)/lib/libzfs/libzfs.la
 
-zfs_LDFLAGS = -pthread
+zfs_LDFLAGS = -pthread -lm
diff --git a/cmd/ztest/Makefile.am b/cmd/ztest/Makefile.am
index 5972917605..74fb74dd5b 100644
--- a/cmd/ztest/Makefile.am
+++ b/cmd/ztest/Makefile.am
@@ -16,5 +16,4 @@ ztest_LDADD = \
 	$(top_builddir)/lib/libzpool/libzpool.la \
 	$(top_builddir)/lib/libzfs/libzfs.la
 
-ztest_LDFLAGS = -pthread
-
+ztest_LDFLAGS = -pthread -lm