Move -lutil.

This commit is contained in:
Nicholas Marriott 2009-05-14 00:17:37 +00:00
parent a8fe667267
commit 1b70993207
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.132 2009-05-13 23:27:00 nicm Exp $
# $Id: Makefile,v 1.133 2009-05-14 00:17:37 nicm Exp $
.SUFFIXES: .c .o
.PHONY: clean
@ -11,7 +11,7 @@ CC?= cc
CFLAGS+= -DBUILD="\"$(VERSION)\""
CPPFLAGS:= -I. -I- -I/usr/local/include ${CPPFLAGS}
LDFLAGS+= -L/usr/local/lib
LIBS+= -lutil -lncurses
LIBS+= -lncurses
.ifdef FDEBUG
LDFLAGS+= -Wl,-E

5
configure vendored
View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: configure,v 1.4 2009-05-14 00:12:42 nicm Exp $
# $Id: configure,v 1.5 2009-05-14 00:17:37 nicm Exp $
CONFIG_H=config.h
CONFIG_MK=config.mk
@ -30,6 +30,7 @@ case `uname` in
EOF
cat <<EOF >>$CONFIG_MK
SRCS+= osdep-openbsd.c
LIBS+= -lutil
EOF
;;
# ------------------------------------------------------------------------------
@ -136,7 +137,7 @@ EOF
EOF
cat <<EOF >>$CONFIG_MK
SRCS+= osdep-freebsd.c
LIBS+= -lcrypt
LIBS+= -lcrypt -lutil
EOF
;;
# ------------------------------------------------------------------------------