File: 0005-build-verbose.patch

package info (click to toggle)
ucspi-tcp 1%3A0.88-13.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,772 kB
  • sloc: ansic: 10,201; makefile: 2,689; python: 604; sh: 168
file content (26 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (3)
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
Description: Show the compiler and linker invocations during the build
 If the "V" environment variable is set to the value "1", show
 the compiler and linker commands before running them.
Forwarded: not-needed
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2023-01-05

--- a/Makefile
+++ b/Makefile
@@ -158,6 +158,7 @@
 compile: \
 warn-auto.sh conf-cc
 	( cat warn-auto.sh; \
+	[ '$V' != '1' ] || echo echo "`head -1 conf-cc`" '-c $${1+"$$@"}'; \
 	echo exec "`head -1 conf-cc`" '-c $${1+"$$@"}' \
 	) > compile
 	chmod 755 compile
@@ -384,6 +385,8 @@
 warn-auto.sh conf-ld
 	( cat warn-auto.sh; \
 	echo 'main="$$1"; shift'; \
+	[ '$V' != '1' ] || echo echo "`head -1 conf-ld`" \
+	'-o "$$main" "$$main".o $${1+"$$@"}'; \
 	echo exec "`head -1 conf-ld`" \
 	'-o "$$main" "$$main".o $${1+"$$@"}' \
 	) > load