From: LLVM Packaging Team Date: Fri, 17 Feb 2023 11:57:29 +0000 (+0000) Subject: Fix link with as-needed default flag, by tweaking upstream patch and cherry-picking... X-Git-Tag: archive/raspbian/1%14.0.6-12+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f920bf6f429a4f689624255ba1d6df0f207f7d91;p=llvm-toolchain-14.git 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 --- 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"