shithub: openh264

Download patch

ref: cf0ac5504bdb162a8718048885c36ffb41e1ff11
parent: ed4db186a1b1477394c9f4126a6460de61df1998
author: Jed Davis <[email protected]>
date: Thu Jul 24 06:10:06 EDT 2014

Don't request executable stacks for Linux GMP plugin.

The codec seems to work without executable stack memory, and in general
executable stacks should be avoided if possible, but the assembler used
for the .asm source files requests it.  This commit adds a linker option
to override that.

--- a/Makefile
+++ b/Makefile
@@ -193,6 +193,9 @@
 ifeq ($(HAVE_GMP_API),Yes)
 plugin: $(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIX)
 LIBRARIES += $(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIX)
+ifeq (linux,$(OS))
+LDFLAGS += -Wl,-z,noexecstack
+endif
 else
 plugin:
 	@echo "./gmp-api : No such file or directory."