Module Name:    src
Committed By:   riastradh
Date:           Sat Apr  9 14:38:47 UTC 2022

Modified Files:
        src/usr.sbin/makefs: Makefile

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


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/usr.sbin/makefs/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/makefs/Makefile
diff -u src/usr.sbin/makefs/Makefile:1.38 src/usr.sbin/makefs/Makefile:1.39
--- src/usr.sbin/makefs/Makefile:1.38	Wed Apr  6 22:25:00 2022
+++ src/usr.sbin/makefs/Makefile	Sat Apr  9 14:38:47 2022
@@ -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 @@ CPPFLAGS+=	-I${.CURDIR} -I${MKNODSRC} -I
 .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
 

Reply via email to