build: mark font-unifont as noexecstack
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 4 Mar 2013 11:15:27 +0000 (12:15 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 4 Mar 2013 11:15:27 +0000 (12:15 +0100)
ld automatically assumes that any binary input file requires an executable
stack. There's no way to tell it that it doesn't so we simply mark all
inputs as noexecstack.

Reported-by: Etam
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Makefile.am

index 870564e..91e48e4 100644 (file)
@@ -452,6 +452,7 @@ mod_unifont_la_LDFLAGS = \
        $(AM_LDFLAGS) \
        -module \
        -avoid-version \
+       -Wl,-z,noexecstack \
        -Wl,--format=binary -Wl,$(UNIFONT_BIN) -Wl,--format=default
 
 if BUILD_ENABLE_FONT_FREETYPE2