Subject: libhack strangeness
To: None <current-users@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 09/22/1999 15:47:50
For some strange reason, when building src/distrib/utils/libhack,

SRCS=   getcap.c getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \
        localeconv.c perror.c setlocale.c \
        strerror.c strsignal.c utmp.c yplib.c
.ifndef NOLIBHACKOPENDIR
SRCS+=        opendir.c
.endif

libhack.o : $(OBJS)
        $(LD) -r -o $@ $(OBJS)

seems to be expanded as

ld -r -o libhack.o getcap.o getgrent.o gethost.o getnet.o getnetgr.o getpwent.o localeconv.o perror.o setlocale.o strerror.o strsignal.o utmp.o yplib.o opendir.o getcap.o getgrent.o gethost.o getnet.o getnetgr.o getpwent.o localeconv.o perror.o setlocale.o strerror.o strsignal.o utmp.o yplib.o opendir.o

ie., I get $(OBJS) twice...

Cheers,

Patrick