64990426e4
You write that LDFLAGS+= -Xlinker -Bstatic no more needed, but you have CFLAGS += -static -I$(.CURDIR) -I$(.CURDIR)/$(MACHINE) This -static doesn't make any sense in your version, because it not passed to linker's state (LDFLAGS), so we have SHARED /usr/bin/ld in this case. (Older Makefile produce non-shared ld). I suppose, that -static in CFLAGS was introduced to make non-shared ld, so I restore previous LDFLAGS to have non-shared ld. If we want to have shared ld we need to remove -static from CFLAGS too, not only LDFLAGS, but this need special issue and corresponding commit log. Your current version hang into intermediate state (beetween two sides), so I move it to one side. Second, I restore NOPIC dependance again from older Makefile: .if !defined(NOPIC) SUBDIR+= rtld .endif We don't need ld.so, if NOPIC P.S. I don't see any purpose to commit new makefile, old version is better.
20 lines
395 B
Makefile
20 lines
395 B
Makefile
# $Id: Makefile,v 1.10 1993/12/01 15:58:22 ache Exp $
|
|
#
|
|
|
|
PROG= ld
|
|
SRCS= ld.c symbol.c lib.c shlib.c warnings.c etc.c rrs.c xbits.c md.c
|
|
CFLAGS += -static -I$(.CURDIR) -I$(.CURDIR)/$(MACHINE)
|
|
|
|
LDADD+= -lgnumalloc
|
|
DPADD+= /usr/lib/libgnumalloc.a
|
|
LDFLAGS+= -Xlinker -Bstatic
|
|
|
|
SUBDIR= ldconfig ldd
|
|
.if !defined(NOPIC)
|
|
SUBDIR+= rtld
|
|
.endif
|
|
|
|
.PATH: $(.CURDIR)/$(MACHINE)
|
|
|
|
.include <bsd.prog.mk>
|