mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-25 02:43:21 +08:00
install ld in the gcclibdir if present
This commit is contained in:
@ -38,10 +38,12 @@ man6dir = $(mandir)/man6
|
|||||||
man7dir = $(mandir)/man7
|
man7dir = $(mandir)/man7
|
||||||
man8dir = $(mandir)/man8
|
man8dir = $(mandir)/man8
|
||||||
man9dir = $(mandir)/man9
|
man9dir = $(mandir)/man9
|
||||||
infodir = $(prefix)/info
|
infodir = $(datadir)/info
|
||||||
includedir = $(prefix)/include
|
includedir = $(prefix)/include
|
||||||
docdir = $(datadir)/doc
|
docdir = $(datadir)/doc
|
||||||
|
|
||||||
|
gcclibdir = $(libdir)/gcc/$(target_alias)
|
||||||
|
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
||||||
INSTALL = install -c
|
INSTALL = install -c
|
||||||
@ -200,6 +202,10 @@ ldgram.h ldgram.c: ldgram.y
|
|||||||
ldlex.c: ldlex.l
|
ldlex.c: ldlex.l
|
||||||
lex -t $(VPATH)/ldlex.l >ldlex.c
|
lex -t $(VPATH)/ldlex.l >ldlex.c
|
||||||
|
|
||||||
|
# Main needs to know the default emulation type, too.
|
||||||
|
ldmain.o: ldmain.c
|
||||||
|
$(CC) $(CFLAGS) -DDEFAULT_EMULATION=$(EMUL) -c $<
|
||||||
|
|
||||||
# These all start with ld__ so 'make clean' can find them.
|
# These all start with ld__ so 'make clean' can find them.
|
||||||
|
|
||||||
ld__gld.c: $(srcdir)/ldtemplate
|
ld__gld.c: $(srcdir)/ldtemplate
|
||||||
@ -453,7 +459,9 @@ objdump:objdump.c
|
|||||||
|
|
||||||
install: $(LD_PROG)
|
install: $(LD_PROG)
|
||||||
$(INSTALL_PROGRAM) ld.new $(bindir)/ld
|
$(INSTALL_PROGRAM) ld.new $(bindir)/ld
|
||||||
# $(INSTALL_PROGRAM) ld.new $(gcclibdir)/ld
|
-if [ -d "$(gcclibdir)" ] ; then \
|
||||||
|
$(INSTALL_PROGRAM) ld.new $(gcclibdir)/ld ; \
|
||||||
|
fi
|
||||||
|
|
||||||
install-info: info
|
install-info: info
|
||||||
for i in ld.info* ; do \
|
for i in ld.info* ; do \
|
||||||
|
Reference in New Issue
Block a user