Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makefs makefs(8): Needs -lm for ceil in udf as a ho...



details:   https://anonhg.NetBSD.org/src/rev/4651ec9c71a2
branches:  trunk
changeset: 365132:4651ec9c71a2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Apr 09 14:38:47 2022 +0000

description:
makefs(8): Needs -lm for ceil in udf as a host tool too.

diffstat:

 usr.sbin/makefs/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 6af7c91f5ef2 -r 4651ec9c71a2 usr.sbin/makefs/Makefile
--- a/usr.sbin/makefs/Makefile  Sat Apr 09 14:09:32 2022 +0000
+++ b/usr.sbin/makefs/Makefile  Sat Apr 09 14:38:47 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.38 2022/04/06 22:25:00 hauke Exp $
+#      $NetBSD: Makefile,v 1.39 2022/04/09 14:38:47 riastradh Exp $
 #
 
 WARNS?=        5
@@ -28,7 +28,9 @@
 .include "${.CURDIR}/msdos/Makefile.inc"
 .include "${.CURDIR}/udf/Makefile.inc"
 
-.if !defined(HOSTPROG)
+.if defined(HOSTPROG)
+LDADD+=        -lm
+.else
 DPADD+= ${LIBUTIL} ${LIBM}
 LDADD+= -lutil -lm
 



Home | Main Index | Thread Index | Old Index