File: 1030-visual-build.patch

package info (click to toggle)
ucspi-proxy 0.99-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 380 kB
  • sloc: ansic: 1,957; makefile: 46
file content (24 lines) | stat: -rw-r--r-- 1,018 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
20
21
22
23
24
Description: Adjust build to print compiler flags.
 This allow the log checker to see if hardening is enable.d
Author: Petter Reinholdtsen <pere@debian.org>
Forwarded: no
Last-Update: 2024-11-23
---
--- ucspi-proxy-0.99.orig/Makefile
+++ ucspi-proxy-0.99/Makefile
@@ -25,6 +25,7 @@ compile: conf-cc conf-bgincs
 	  echo '#!/bin/sh'; \
 	  echo 'source=$$1; shift'; \
 	  echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
+	  echo echo `head -n 1 conf-cc` -I. "-I'$${bgincs}'" '-o $${base}.o -c $$source $${1+"$$@"}'; \
 	  echo exec `head -n 1 conf-cc` -I. "-I'$${bgincs}'" '-o $${base}.o -c $$source $${1+"$$@"}'; \
 	) >compile
 	chmod 755 compile
@@ -47,6 +48,7 @@ load: conf-ld conf-bglibs
 	( bglibs=`head -n 1 conf-bglibs`; \
 	  echo '#!/bin/sh';\
 	  echo 'main="$$1"; shift';\
+	  echo echo `head -n 1 conf-ld` -L. "-L'$${bglibs}'" '-o "$$main" "$$main.o" $${1+"$$@"}' -lbg; \
 	  echo exec `head -n 1 conf-ld` -L. "-L'$${bglibs}'" '-o "$$main" "$$main.o" $${1+"$$@"}' -lbg; \
 	) >load
 	chmod 755 load