Fix link with as-needed default flag, by tweaking upstream patch and cherry-picking...
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 17 Feb 2023 11:57:29 +0000 (11:57 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Fri, 17 Feb 2023 11:57:29 +0000 (11:57 +0000)
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

index c37209ac2d11105275ba828f6a55f74700fe10e2..b582a335535f8832644b8846b1f3c7c43738ebc5 100644 (file)
@@ -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"