]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Inline 'gcc/rust/Make-lang.in:RUST_LDFLAGS' into single user
authorThomas Schwinge <tschwinge@baylibre.com>
Wed, 28 Feb 2024 21:45:18 +0000 (22:45 +0100)
committerThomas Schwinge <tschwinge@baylibre.com>
Mon, 15 Apr 2024 11:03:35 +0000 (13:03 +0200)
gcc/rust/
* Make-lang.in (RUST_LDFLAGS): Inline into single user.

gcc/rust/Make-lang.in

index e901668b93d90838de858b183962172830b9cf59..ffeb325d6ce82578076cf9a40b7d066924574272 100644 (file)
@@ -208,13 +208,12 @@ RUST_ALL_OBJS = $(GRS_OBJS) $(RUST_TARGET_OBJS)
 
 rust_OBJS = $(RUST_ALL_OBJS) rust/rustspec.o
 
-RUST_LDFLAGS = $(LDFLAGS)
 RUST_LIBDEPS = $(LIBDEPS) ../libgrust/libproc_macro_internal/libproc_macro_internal.a
 
 # The compiler itself is called crab1
 crab1$(exeext): $(RUST_ALL_OBJS) attribs.o $(BACKEND) $(RUST_LIBDEPS) $(rust.prev)
        @$(call LINK_PROGRESS,$(INDEX.rust),start)
-       +$(LLINKER) $(ALL_LINKERFLAGS) $(RUST_LDFLAGS) -o $@ \
+       +$(LLINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
              $(RUST_ALL_OBJS) attribs.o $(BACKEND) $(LIBS) ../libgrust/libproc_macro_internal/libproc_macro_internal.a $(BACKENDLIBS)
        @$(call LINK_PROGRESS,$(INDEX.rust),end)