The rest of the binutils tree renamed this variable many years ago.
+2021-03-13 Mike Frysinger <vapier@gentoo.org>
+
+ * Make-common.in (LINK_FOR_BUILD): Change BUILD_LDFLAGS to
+ LDFLAGS_FOR_BUILD.
+
2021-03-13 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (COMPILE_FOR_BUILD, LINK_FOR_BUILD): Define.
LIB_OBJS = callback.o syscall.o targ-map.o version.o $(SIM_OBJS)
COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS)
-LINK_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o $@
+LINK_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(LDFLAGS_FOR_BUILD) -o $@
RUNTESTFLAGS =
+2021-03-13 Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.in (LDFLAGS_FOR_BUILD): Define.
+ (BUILD_LDFLAGS): Delete.
+ (LINK_FOR_BUILD): Change BUILD_LDFLAGS to LDFLAGS_FOR_BUILD.
+ * configure.ac (LDFLAGS_FOR_BUILD): Define.
+ * configure: Regenerate.
+
2021-03-13 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (COMPILE_FOR_BUILD, LINK_FOR_BUILD): Define.
CC_FOR_BUILD = @CC_FOR_BUILD@
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
+LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
WARN_CFLAGS = @WARN_CFLAGS@
WERROR_CFLAGS = @WERROR_CFLAGS@
$(IGEN_WARN_CFLAGS) \
$(IGEN_WERROR_CFLAGS) \
$(INCLUDES)
-BUILD_LDFLAGS =
COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS)
-LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(BUILD_LDFLAGS) -o $@
+LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@
all: igen
#all: tmp-filter tmp-table tmp-ld-insn tmp-ld-cache tmp-ld-decode tmp-gen
ac_unique_file="table.h"
ac_subst_vars='LTLIBOBJS
LIBOBJS
+LDFLAGS_FOR_BUILD
CFLAGS_FOR_BUILD
CC_FOR_BUILD
target_os
if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
CC_FOR_BUILD='$(CC)'
CFLAGS_FOR_BUILD='$(CFLAGS)'
+ LDFLAGS_FOR_BUILD='$(LDFLAGS)'
else
CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
+ LDFLAGS_FOR_BUILD=
fi
# Make sure we can run config.sub.
+
ac_config_files="$ac_config_files Makefile"
cat >confcache <<\_ACEOF
if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
CC_FOR_BUILD='$(CC)'
CFLAGS_FOR_BUILD='$(CFLAGS)'
+ LDFLAGS_FOR_BUILD='$(LDFLAGS)'
else
CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
+ LDFLAGS_FOR_BUILD=
fi
AC_CANONICAL_SYSTEM
AC_SUBST(CC_FOR_BUILD)
AC_SUBST(CFLAGS_FOR_BUILD)
+AC_SUBST(LDFLAGS_FOR_BUILD)
AC_OUTPUT(Makefile)
+2021-03-13 Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.in (BUILD_LDFLAGS): Rename to ...
+ (LDFLAGS_FOR_BUILD): ... this.
+ (LINK_FOR_BUILD): Change BUILD_LDFLAGS to LDFLAGS_FOR_BUILD.
+
2021-03-13 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (COMPILE_FOR_BUILD, LINK_FOR_BUILD): Define.
NOWARN_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(INCLUDES) $(SIM_FPU_CFLAGS)
BUILD_CFLAGS = $(CFLAGS_FOR_BUILD) $(INCLUDES) $(WARNING_CFLAGS)
-BUILD_LDFLAGS =
+LDFLAGS_FOR_BUILD =
LIBS = @LIBS@
COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS)
-LINK_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o $@
+LINK_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(LDFLAGS_FOR_BUILD) -o $@
CONFIG_FILE = @sim_config@
IGEN_OPCODE_RULES = @sim_opcode@