aboutsummaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-09-02 22:10:08 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2020-09-02 22:10:08 +0000
commit4d135bbd7fd2669f2238d0d0074ce9a17d720630 (patch)
tree21fb332e12132ddcfc1e680b9c33f7076b9411d4 /rescue
parent875e04d716df67b993a42bae2de32c4ea5b1dfdc (diff)
downloadsrc-4d135bbd7fd2669f2238d0d0074ce9a17d720630.tar.gz
src-4d135bbd7fd2669f2238d0d0074ce9a17d720630.zip
libifconfig now depends on libm due to usage of log10().
ld.bfd in particular requires -lm to come after libifconfig on the command line when linking rescue. Reviewed by: freqlabs, adrian Differential Revision: https://reviews.freebsd.org/D26258
Notes
Notes: svn path=/head/; revision=365282
Diffstat (limited to 'rescue')
-rw-r--r--rescue/rescue/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile
index bda45c7d2884..b468a7827914 100644
--- a/rescue/rescue/Makefile
+++ b/rescue/rescue/Makefile
@@ -222,11 +222,12 @@ CRUNCH_PROGS_usr.sbin+= chroot
CRUNCH_PROGS_usr.sbin+= chown
CRUNCH_ALIAS_chown= chgrp
##################################################################
-CRUNCH_LIBS+= -lm
CRUNCH_LIBS+= ${OBJTOP}/lib/libifconfig/libifconfig.a
CRUNCH_BUILDOPTS+= CRUNCH_CFLAGS+=-I${OBJTOP}/lib/libifconfig
+CRUNCH_LIBS+= -lm
+
.if ${MK_ISCSI} != "no"
CRUNCH_PROGS_usr.bin+= iscsictl
CRUNCH_PROGS_usr.sbin+= iscsid