Link chromium with -Wl,-z,wxneeded. This has two effects:

1. it will disable the kernel logs about W^X violations.

2. the binary will not run at all unless the filesystem holding
/usr/local has the "wxallowed" flag set (in /etc/fstab), rather
than starting but having tabs crash all the time.

ok robert@
This commit is contained in:
sthen 2016-06-02 10:47:47 +00:00
parent bfb6807b1d
commit 59846a9789

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.289 2016/05/28 16:37:10 robert Exp $
# $OpenBSD: Makefile,v 1.290 2016/06/02 10:47:47 sthen Exp $
ONLY_FOR_ARCHS= i386 amd64
DPB_PROPERTIES= parallel
@ -6,6 +6,7 @@ DPB_PROPERTIES= parallel
COMMENT= Chromium browser
V= 51.0.2704.63
REVISION= 0
DISTNAME= chromium-${V}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
@ -92,7 +93,7 @@ TEST_TARGET= base_unittests
CONFIGURE_STYLE=none # prevent python MODULE from overriding do-build
CONFIGURE_ENV= CPPFLAGS="-idirafter ${LOCALBASE}/include -idirafter ${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -Wl,-z,wxneeded" \
GYP_GENERATORS=ninja
ALL_TARGET= chrome