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@;' $< > $@
|