diff options
author | cls%seawood.org <devnull@localhost> | 2001-03-09 07:40:33 +0000 |
---|---|---|
committer | cls%seawood.org <devnull@localhost> | 2001-03-09 07:40:33 +0000 |
commit | c24da7dc496705065cc75b7554c607887b88296d (patch) | |
tree | 4551a83b3088d78ff849dc1a6ca9e981e50a53c1 | |
parent | 134c47bcb4cc6030ba511543c70be8d11573adc7 (diff) | |
download | nspr-hg-c24da7dc496705065cc75b7554c607887b88296d.tar.gz |
Use CC instead of LD to link.
Thanks to martin@NetBSD.ORG (Martin Husemann) for the patch.
Bug #61745 r=cls
-rw-r--r-- | config/NetBSD.mk | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/config/NetBSD.mk b/config/NetBSD.mk index cb2211ad..2eca2afb 100644 --- a/config/NetBSD.mk +++ b/config/NetBSD.mk @@ -52,16 +52,23 @@ ifeq ($(OBJECT_FMT),ELF) DLL_SUFFIX = so else DLL_SUFFIX = so.1.0 +# XXX work around a bug in the a.out ld(1). +OS_LIBS = endif DSO_CFLAGS = -fPIC -DPIC DSO_LDFLAGS = -DSO_LDOPTS = -x -shared +DSO_LDOPTS = -shared +ifeq ($(OBJECT_FMT),ELF) +DSO_LDOPTS +=-Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) +endif ifdef LIBRUNPATH -DSO_LDOPTS += -R$(LIBRUNPATH) +#DSO_LDOPTS += -R$(LIBRUNPATH) +DSO_LDOPTS += -Wl,-R$(LIBRUNPATH) endif -MKSHLIB = $(LD) $(DSO_LDOPTS) +#MKSHLIB = $(LD) $(DSO_LDOPTS) +MKSHLIB = $(CC) $(DSO_LDOPTS) G++INCLUDES = -I/usr/include/g++ |