File: debian-tests-extra-libs.diff

package info (click to toggle)
clazy 1.15-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,244 kB
  • sloc: cpp: 25,011; python: 1,387; xml: 420; sh: 236; makefile: 45
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