pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/cad/py-MyHDL py-MyHDL: Respect CFLAGS/LDFLAGS. Fixes M...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8bf44d5e6ed2
branches: trunk
changeset: 378432:8bf44d5e6ed2
user: nia <nia%pkgsrc.org@localhost>
date: Tue May 03 17:38:34 2022 +0000
description:
py-MyHDL: Respect CFLAGS/LDFLAGS. Fixes MyHDL-gplcver build with RELRO.
diffstat:
cad/py-MyHDL/distinfo | 3 +-
cad/py-MyHDL/patches/patch-cosimulation_cver_Makefile.lnx | 27 +++++++++++++++
2 files changed, 29 insertions(+), 1 deletions(-)
diffs (44 lines):
diff -r b77d6176a17f -r 8bf44d5e6ed2 cad/py-MyHDL/distinfo
--- a/cad/py-MyHDL/distinfo Tue May 03 17:33:09 2022 +0000
+++ b/cad/py-MyHDL/distinfo Tue May 03 17:38:34 2022 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.13 2021/10/26 10:04:15 nia Exp $
+$NetBSD: distinfo,v 1.14 2022/05/03 17:38:34 nia Exp $
BLAKE2s (myhdl-0.10.tar.gz) = b32a10dcfdf4cead07e948d53615655e38bfa20aeaad2ab711e0493851818d21
SHA512 (myhdl-0.10.tar.gz) = b250c8b09a2cfbd2a70da60d567c8bcb09747c3e8df536cdd28ad49a8a6fbe5a28395295a6ed6046ced745b617fb3804ceb0f83d9b34db7c70701148ae7db25b
Size (myhdl-0.10.tar.gz) = 1205466 bytes
+SHA1 (patch-cosimulation_cver_Makefile.lnx) = 64508943117d23f1564c23642dda5843545d741e
SHA1 (patch-myhdl___always__seq.py) = 2ba91a28a40f5582a7ab509ee8e619ce92333e92
SHA1 (patch-myhdl_conversion___toVHDL.py) = 85651035475d908749306dfd57895060582a2051
diff -r b77d6176a17f -r 8bf44d5e6ed2 cad/py-MyHDL/patches/patch-cosimulation_cver_Makefile.lnx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/py-MyHDL/patches/patch-cosimulation_cver_Makefile.lnx Tue May 03 17:38:34 2022 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-cosimulation_cver_Makefile.lnx,v 1.1 2022/05/03 17:38:34 nia Exp $
+
+Use LDFLAGS (more standard than 'LFLAGS', allows pkgsrc to pass
+security hardening flags). Don't override CFLAGS.
+
+--- cosimulation/cver/Makefile.lnx.orig 2018-04-02 07:30:11.000000000 +0000
++++ cosimulation/cver/Makefile.lnx
+@@ -6,8 +6,8 @@ INCS=-I$(HOME)/Tools/gplcver-2.12a.src/p
+
+ # maybe want -O<something> and/or -g
+ # -fno-stack-protector apparently needed with newer gcc's
+-CFLAGS= -fPIC -fno-stack-protector -Wall -g $(INCS)
+-LFLAGS= -G -shared -export-dynamic
++CFLAGS+= -fPIC -fno-stack-protector -Wall -g $(INCS)
++LDFLAGS+= -G -shared -export-dynamic
+
+ # change to your compiler
+ CC=gcc
+@@ -19,7 +19,7 @@ myhdl_vpi.o: myhdl_vpi.c
+
+ # make rules for dynamic libaries
+ myhdl_vpi.so: myhdl_vpi.o
+- $(LD) $(LFLAGS) myhdl_vpi.o -o myhdl_vpi.so
++ $(LD) $(LDFLAGS) myhdl_vpi.o -o myhdl_vpi.so
+
+ clean:
+ -rm *.o *.so
Home |
Main Index |
Thread Index |
Old Index