File: debian-tests-extra-libs.diff

package info (click to toggle)
clazy 1.14-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,188 kB
  • sloc: cpp: 24,845; python: 1,387; sh: 236; xml: 136; makefile: 46
file content (19 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Pino Toscano <pino@debian.org>
Description: Add environment variable for extra link flags
 Enable the usage of an environment variable to pass extra flags to linking
 steps.
Last-Update: 2024-07-05
Forwarded: not-needed

--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -358,6 +358,9 @@ def link_flags(qt:QtInstallation):
         flags += " -lstdc++"
         if is_qt6:
             flags += " -lQt6StateMachine"
+    debian_extra_libs = os.getenv("DEBIAN_EXTRA_LIBS")
+    if debian_extra_libs:
+        flags += " " + debian_extra_libs
     return flags