File: filter-out_iverilog-vpi_flags.patch

package info (click to toggle)
iverilog 12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,148 kB
  • sloc: cpp: 109,972; ansic: 62,713; yacc: 10,216; sh: 3,470; vhdl: 3,246; perl: 1,814; makefile: 1,774; python: 78; csh: 2
file content (20 lines) | stat: -rw-r--r-- 1,005 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Filter out -ffile-prefix-map flag from iverilog-vpi flags
 This flag isn't needed for runtime, and it exposed the build path in
 resulting executable
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy@users.sourceforge.net>
Forwardes: not-needed
Index: iverilog/Makefile.in
===================================================================
--- iverilog.orig/Makefile.in	2025-09-29 15:34:29.630663678 +0200
+++ iverilog/Makefile.in	2025-09-29 15:36:44.187359478 +0200
@@ -233,8 +233,8 @@
 	    -e 's;@SUFFIX@;$(suffix);' \
 	    -e 's;@IVCC@;$(CC);' \
 	    -e 's;@IVCXX@;$(CXX);' \
-	    -e 's;@IVCFLAGS@;$(CFLAGS);' \
-	    -e 's;@IVCXXFLAGS@;$(CXXFLAGS);' \
+	    -e 's;@IVCFLAGS@;$(shell echo $(CFLAGS) | sed -e 's/-ffile-prefix-map=.*\.//');' \
+	    -e 's;@IVCXXFLAGS@;$(shell echo $(CXXFLAGS) | sed -e 's/-ffile-prefix-map=.*\.//');' \
 	    -e 's;@IVCTARGETFLAGS@;$(CTARGETFLAGS);' \
 	    -e 's;@INCLUDEDIR@;$(includedir);' \
 	    -e 's;@LIBDIR@;@libdir@;' $< > $@