mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Use CC instead of LD to link.
Thanks to martin@NetBSD.ORG (Martin Husemann) for the patch. Bug #61745 r=cls
This commit is contained in:
parent
b44b477470
commit
6f8a5d43c1
@ -68,15 +68,22 @@ 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_LDOPTS = -x -shared
|
||||
|
||||
ifdef LIBRUNPATH
|
||||
DSO_LDOPTS += -R$(LIBRUNPATH)
|
||||
DSO_LDOPTS = -shared
|
||||
ifeq ($(OBJECT_FMT),ELF)
|
||||
DSO_LDOPTS +=-Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
|
||||
endif
|
||||
|
||||
MKSHLIB = $(LD) $(DSO_LDOPTS)
|
||||
ifdef LIBRUNPATH
|
||||
#DSO_LDOPTS += -R$(LIBRUNPATH)
|
||||
DSO_LDOPTS += -Wl,-R$(LIBRUNPATH)
|
||||
endif
|
||||
|
||||
#MKSHLIB = $(LD) $(DSO_LDOPTS)
|
||||
MKSHLIB = $(CC) $(DSO_LDOPTS)
|
||||
|
||||
G++INCLUDES = -I/usr/include/g++
|
||||
|
Loading…
Reference in New Issue
Block a user