From 4911c15c97820eeccc97aa73563c9605bba073a1 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Wed, 31 Oct 2018 21:48:52 +0000 Subject: [PATCH] Fix profiledbootstrap when D is enabled gcc/d/ChangeLog: 2018-10-31 Iain Buclaw PR d/87825 * Make-lang.in (d/idgen) Link with BUILD_LINKERFLAGS. (d/impcvgen): Likewise. From-SVN: r265702 --- gcc/d/ChangeLog | 6 ++++++ gcc/d/Make-lang.in | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/d/ChangeLog b/gcc/d/ChangeLog index b90ba711e8d..394527e386a 100644 --- a/gcc/d/ChangeLog +++ b/gcc/d/ChangeLog @@ -1,3 +1,9 @@ +2018-10-31 Iain Buclaw + + PR d/87825 + * Make-lang.in (d/idgen) Link with BUILD_LINKERFLAGS. + (d/impcvgen): Likewise. + 2018-10-26 Eugene Wissner * Make-lang.in (selftest-d): New. diff --git a/gcc/d/Make-lang.in b/gcc/d/Make-lang.in index 79baf018889..4bab7dd5f1a 100644 --- a/gcc/d/Make-lang.in +++ b/gcc/d/Make-lang.in @@ -317,10 +317,10 @@ d/%.o: d/dmd/root/%.c $(D_GENERATED_SRCS) # Generated programs. d/idgen: d/idgen.dmdgen.o - +$(LINKER_FOR_BUILD) $(BUILD_LINKER_FLAGS) $(BUILD_LDFLAGS) -o $@ $^ + +$(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) -o $@ $^ d/impcvgen: d/impcnvgen.dmdgen.o - +$(LINKER_FOR_BUILD) $(BUILD_LINKER_FLAGS) $(BUILD_LDFLAGS) -o $@ $^ + +$(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) -o $@ $^ # Generated sources. d/id.c: d/idgen -- 2.30.2