File: 0004-Repeat-options-after-source-Closes-941563.patch

package info (click to toggle)
binfmtc 0.17-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 800 kB
  • sloc: sh: 1,116; ansic: 891; cpp: 81; makefile: 81; asm: 48; java: 5; fortran: 3
file content (30 lines) | stat: -rw-r--r-- 889 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
From: =?utf-8?b?0L3QsNCx?= <nabijaczleweli@nabijaczleweli.xyz>
Date: Fri, 28 Feb 2025 17:12:58 +0100
Subject: Repeat options after source (Closes: #941563)

---
 binfmtc-interpreter.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/binfmtc-interpreter.c b/binfmtc-interpreter.c
index e851a51..f7941fe 100644
--- a/binfmtc-interpreter.c
+++ b/binfmtc-interpreter.c
@@ -100,13 +100,15 @@ char* compile_source(const char *sourcename)
     }
 
   asprintf (&gcccommandline,
-	    "%s -o %s %s %s %s \"%s\"",
+	    "%s -o %s %s %s %s \"%s\" %s %s",
 	    compiler_name(),
 	    tempfilename,
 	    gcc_x,
 	    s+BINFMTC_MAGIC_LEN,
 	    default_options(),
-	    basename(sourcename));
+	    basename(sourcename),
+	    s+BINFMTC_MAGIC_LEN,
+	    default_options());
 
   if (BINFMTC_DEBUG)
     fprintf(stderr, "binfmtc: Execute command-line: %s\n", gcccommandline);