Skip to content

Commit ff9ede8

Browse files
Fix the test build on Ubuntu 22.04
The LDFLAGS are too early on the command line to be used by the system's GCC when linking our object files; use LIBS instead, which are at the very end of the command line.
1 parent 9749c26 commit ff9ede8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Makefile.include

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ test-block-obj-$(CONFIG_BLOCK) = $(block-obj-y) $(test-io-obj-y) tests/iothread.
518518
# directory for target-specific TCG tests, but it expects to run everything
519519
# inside the emulator and therefore lacks the unit-test setup.
520520
tests/check-sym-runtime.o-cflags := -I$(SRC_PATH)/target/i386 -Ix86_64-linux-user -DNEED_CPU_H
521-
tests/check-sym-runtime$(EXESUF): LDFLAGS += $(libs_cpu)
521+
tests/check-sym-runtime$(EXESUF): LIBS += $(libs_cpu)
522522
tests/check-sym-runtime$(EXESUF): tests/check-sym-runtime.o \
523523
x86_64-linux-user/accel/tcg/tcg-runtime-sym.o
524524

0 commit comments

Comments
 (0)