freebsd_amp_hwpstate/gnu/usr.bin/ld
Andrey A. Chernov 64990426e4 Sorry, Jordan, but I restore previous version again.
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.
1993-12-02 09:56:30 +00:00
..
i386 Many recent fixes from Paul K, add support for chaining of shared lib deps. 1993-11-30 20:47:54 +00:00
ldconfig Many recent fixes from Paul K, add support for chaining of shared lib deps. 1993-11-30 20:47:54 +00:00
ldd Imported NetBSD's ld for shared libs. 1993-11-03 23:41:59 +00:00
rtld Second attempt to integrate Paul K's changes. 1993-12-02 01:03:47 +00:00
sparc Many recent fixes from Paul K, add support for chaining of shared lib deps. 1993-11-30 20:47:54 +00:00
Makefile Sorry, Jordan, but I restore previous version again. 1993-12-02 09:56:30 +00:00
cplus-dem.c Imported NetBSD's ld for shared libs. 1993-11-03 23:41:59 +00:00
etc.c Many recent fixes from Paul K, add support for chaining of shared lib deps. 1993-11-30 20:47:54 +00:00
ld.1 Imported NetBSD's ld for shared libs. 1993-11-03 23:41:59 +00:00
ld.1aout Imported NetBSD's ld for shared libs. 1993-11-03 23:41:59 +00:00
ld.c Moved DEBUG conditional where it belonged to remove DEBUG code out of 1993-12-02 05:09:52 +00:00
ld.h Many recent fixes from Paul K, add support for chaining of shared lib deps. 1993-11-30 20:47:54 +00:00
lib.c Second attempt to integrate Paul K's changes. 1993-12-02 00:56:40 +00:00
rrs.c #ifdef DEBUG unwanted message, third time after Jordan... 1993-12-02 09:32:26 +00:00
shlib.c Many recent fixes from Paul K, add support for chaining of shared lib deps. 1993-11-30 20:47:54 +00:00
symbol.c Some of the latest changes from Paul K (taken from NetBSD-current). 1993-11-22 19:05:31 +00:00
symseg.h Imported NetBSD's ld for shared libs. 1993-11-03 23:41:59 +00:00
warnings.c Updated to newest ld from pk. 1993-11-09 04:19:36 +00:00
xbits.c Imported NetBSD's ld for shared libs. 1993-11-03 23:41:59 +00:00