lang/node

* build with USE_NOBTCFI
* include nobtcfi in common.gypi's ldflags

feedback and ok sthen@
This commit is contained in:
volker
2023-06-27 18:30:26 +00:00
parent 2d6962beff
commit 2eeba6d616
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ ONLY_FOR_ARCHS = amd64 aarch64 i386 powerpc64 riscv64
DPB_PROPERTIES = parallel
USE_WXNEEDED = Yes
USE_NOBTCFI = Yes
COMMENT = JavaScript runtime built on Chrome's V8 JavaScript engine
@@ -13,7 +14,7 @@ DISTFILES = node-pledge-{}${PLEDGE_VER}.tar.gz:0 \
DISTNAME = node-${NODE_VERSION}
PKGNAME = ${DISTNAME:S/v//g}
REVISION = 0
EPOCH = 0
MASTER_SITES0 = https://github.com/qbit/node-pledge/archive/
+3 -2
View File
@@ -9,18 +9,19 @@ Index: common.gypi
'conditions': [
['enable_lto=="true"', {
'cflags': ['<(lto)'],
@@ -409,7 +408,9 @@
@@ -409,7 +408,10 @@
}],
['OS=="openbsd"', {
'cflags': [ '-I/usr/local/include' ],
- 'ldflags': [ '-Wl,-z,wxneeded' ],
+ 'ldflags': [ '-Wl,-z,wxneeded'
+ , '-Wl,-z,nobtcfi'
+ , '-Wl,-rpath,${EOPENSSL_LIB}'
+ ],
}],
],
'conditions': [
@@ -426,7 +427,7 @@
@@ -426,7 +428,7 @@
'ldflags': [ '-m32' ],
}],
[ 'target_arch=="ppc64" and OS not in "aix os400"', {