diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-03-08 00:35:03 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-03-13 11:21:13 -0500 |
commit | e7d9022ba8755005cae79207b5f911b1a9cebed4 (patch) | |
tree | 4583661a1178aa6ddbee99ad97d0b3c2e334e06d | |
parent | c6c7769d9dd166c45bd9d422e91ca537752c0382 (diff) | |
download | gdb-e7d9022ba8755005cae79207b5f911b1a9cebed4.zip gdb-e7d9022ba8755005cae79207b5f911b1a9cebed4.tar.gz gdb-e7d9022ba8755005cae79207b5f911b1a9cebed4.tar.bz2 |
sim: rename BUILD_LDFLAGS to LDFLAGS_FOR_BUILD
The rest of the binutils tree renamed this variable many years ago.
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/Make-common.in | 2 | ||||
-rw-r--r-- | sim/igen/ChangeLog | 8 | ||||
-rw-r--r-- | sim/igen/Makefile.in | 4 | ||||
-rwxr-xr-x | sim/igen/configure | 4 | ||||
-rw-r--r-- | sim/igen/configure.ac | 3 | ||||
-rw-r--r-- | sim/ppc/ChangeLog | 6 | ||||
-rw-r--r-- | sim/ppc/Makefile.in | 4 |
8 files changed, 31 insertions, 5 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 8d48933..1676df7 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,5 +1,10 @@ 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. (gentmap.o): New rule. (gentmap): Call LINK_FOR_BUILD. diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index 8b35deb..f4a7e8d 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -249,7 +249,7 @@ EXTRA_LIBS = $(BFD_LIB) $(OPCODES_LIB) $(LIBINTL) $(LIBIBERTY_LIB) \ 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 = diff --git a/sim/igen/ChangeLog b/sim/igen/ChangeLog index 5ee1c7a..a374d5e 100644 --- a/sim/igen/ChangeLog +++ b/sim/igen/ChangeLog @@ -1,5 +1,13 @@ 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. (.c.o, igen.o): Call COMPILE_FOR_BUILD. (igen, tmp-table, tmp-filter, tmp-ld-decode, tmp-ld-cache, tmp-ld-insn, diff --git a/sim/igen/Makefile.in b/sim/igen/Makefile.in index 60626ad..3c06c72 100644 --- a/sim/igen/Makefile.in +++ b/sim/igen/Makefile.in @@ -60,6 +60,7 @@ CFLAGS = @CFLAGS@ 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@ @@ -80,10 +81,9 @@ BUILD_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 diff --git a/sim/igen/configure b/sim/igen/configure index 074e0dd..527b54f 100755 --- a/sim/igen/configure +++ b/sim/igen/configure @@ -584,6 +584,7 @@ PACKAGE_URL= ac_unique_file="table.h" ac_subst_vars='LTLIBOBJS LIBOBJS +LDFLAGS_FOR_BUILD CFLAGS_FOR_BUILD CC_FOR_BUILD target_os @@ -2779,9 +2780,11 @@ fi 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. @@ -2899,6 +2902,7 @@ test -n "$target_alias" && + ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF diff --git a/sim/igen/configure.ac b/sim/igen/configure.ac index 807e1d5..d87673e 100644 --- a/sim/igen/configure.ac +++ b/sim/igen/configure.ac @@ -11,14 +11,17 @@ SIM_AC_OPTION_WARNINGS 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) diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 61bb3d9..16b3ab7 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,5 +1,11 @@ 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. Change $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) to $(LINK_FOR_BUILD). Change $(CC_FOR_BUILD) $(BUILD_CFLAGS) to diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in index 8c58635..ae99dc3 100644 --- a/sim/ppc/Makefile.in +++ b/sim/ppc/Makefile.in @@ -107,11 +107,11 @@ STD_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(INC 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@ |