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