sim: build: drop duplicate $(LIBS) usage
authorMike Frysinger <vapier@gentoo.org>
Thu, 3 Nov 2022 07:58:29 +0000 (13:43 +0545)
committerMike Frysinger <vapier@gentoo.org>
Fri, 4 Nov 2022 00:42:31 +0000 (07:42 +0700)
COMMON_LIBS is set to $(LIBS), and CONFIG_LIBS is set to that plus
@LIBS@.  This leds to the values being used twice.  Inline the
CONFIG_LIBS variable without @LIBS@ since it's used only once.

sim/common/Make-common.in

index c58eb0d3ba97ad3e0d374ae59b445a0a926bf263..a79a375a90c5e7f7a6e9424f6a6bbca549611a21 100644 (file)
@@ -221,10 +221,9 @@ SIM_HW_DEVICES = cfi core pal glue $(SIM_EXTRA_HW_DEVICES)
 LIBIBERTY_LIB = ../../libiberty/libiberty.a
 BFD_LIB = ../../bfd/libbfd.la
 OPCODES_LIB = ../../opcodes/libopcodes.la
-CONFIG_LIBS = $(COMMON_LIBS) @LIBS@
 LIBDEPS = $(BFD_LIB) $(OPCODES_LIB) $(LIBIBERTY_LIB)
 EXTRA_LIBS = $(BFD_LIB) $(OPCODES_LIB) $(LIBIBERTY_LIB) \
-       $(CONFIG_LIBS) $(SIM_EXTRA_LIBS) $(LIBGNU) $(LIBGNU_EXTRA_LIBS)
+       $(COMMON_LIBS) $(SIM_EXTRA_LIBS) $(LIBGNU) $(LIBGNU_EXTRA_LIBS)
 
 COMMON_OBJS_NAMES = \
        callback.o \