This is an automated email from the ASF dual-hosted git repository.

ardovm pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO41X by this push:
     new 3e7e88da55 Fix issues with SELinux (#483)
3e7e88da55 is described below

commit 3e7e88da551a0263f8ccb9c990b61cd1e5829c2f
Author: Arrigo Marchiori <[email protected]>
AuthorDate: Mon Jun 22 21:17:36 2026 +0200

    Fix issues with SELinux (#483)
    
    Ensure that raptor is built with noexecstack on FreeBSD as well as Linux
---
 main/redland/raptor/makefile.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/main/redland/raptor/makefile.mk b/main/redland/raptor/makefile.mk
index 5291695202..1aaea70698 100644
--- a/main/redland/raptor/makefile.mk
+++ b/main/redland/raptor/makefile.mk
@@ -101,6 +101,10 @@ 
LDFLAGS:=-Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-noinhibit-exec
 LDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib'
 .ENDIF                  # "$(OS)$(COM)"=="SOLARISC52"
 
+.IF "$(OS)"=="LINUX" || "$(OS)"=="FREEBSD"
+LDFLAGS+:=-Wl,-z,noexecstack
+.ENDIF # "$(OS)"=="LINUX" || "$(OS)"=="FREEBSD"
+
 .IF "$(COM)"=="C52" && "$(CPU)"=="U"
 CFLAGS=-m64
 .EXPORT: CFLAGS

Reply via email to