From f920bf6f429a4f689624255ba1d6df0f207f7d91 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Fri, 17 Feb 2023 11:57:29 +0000 Subject: [PATCH] Fix link with as-needed default flag, by tweaking upstream patch and cherry-picking to branch 14 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027013 Origin: https://github.com/LocutusOfBorg/llvm-toolchain-integration-test-suite/commit/14b0d058ecf88744add2a4c5e38d1d8ecef1dbf8 Gbp-Pq: Name libclang-cpp-test-link-failure.patch --- integration-test-suite/tests/libclang_cpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-test-suite/tests/libclang_cpp.cpp b/integration-test-suite/tests/libclang_cpp.cpp index c37209ac2d..b582a33553 100644 --- a/integration-test-suite/tests/libclang_cpp.cpp +++ b/integration-test-suite/tests/libclang_cpp.cpp @@ -1,7 +1,7 @@ // Test the link against libclang-cppXX // // REQUIRES: clang, llvm-config -// RUN: %clangxx -lclang-cpp -v %s -o %t `%llvm-config --cxxflags --ldflags --libs` +// RUN: %clangxx -v %s -o %t `%llvm-config --cxxflags --ldflags --libs` -lclang-cpp // RUN: ldd %t 2>&1|grep -q libclang-cpp #include "clang/Tooling/CommonOptionsParser.h" -- 2.30.2