File: 0001-Build-debugcc-as-a-dynamically-linked-binary.patch

package info (click to toggle)
debugcc 0.0~git20251107.a01ea9e-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 408 kB
  • sloc: ansic: 6,693; makefile: 5
file content (31 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Christopher Obbard <obbardc@debian.org>
Date: Mon, 24 Nov 2025 22:28:12 +0000
Subject: Build debugcc as a dynamically linked binary

debugcc is currently linked statically using -static and -static-libgcc.
This is not required for normal use and causes issues for distributions
that prefer dynamically linked binaries, such as larger binaries and
duplicated runtime code that would otherwise be shared.

Drop the explicit static link flags and allow Meson to use the default
toolchain behaviour so that debugcc is built as a dynamically linked
binary instead.

Signed-off-by: Christopher Obbard <obbardc@debian.org>

Forwarded: https://github.com/linux-msm/debugcc/pull/39
Signed-off-by: Christopher Obbard <obbardc@debian.org>
---
 meson.build | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meson.build b/meson.build
index 062c48a..9efd116 100644
--- a/meson.build
+++ b/meson.build
@@ -61,5 +61,4 @@ debugcc_srcs += configure_file(
 
 executable('debugcc',
   debugcc_srcs,
-  link_args: ['-static','-static-libgcc'],
   install: true)