summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-10-23 09:36:05 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-10-23 09:36:05 +0200
commit01f7423a6083701a05c8c0614c27b1007c320bac (patch)
tree643430b3e8afd62fea53f6cd118f71b94172a70b /cfg.mk
parent6f0594f4474c97cf52d74e0e9a024cb3c3a57844 (diff)
downloadgnutls-01f7423a6083701a05c8c0614c27b1007c320bac.tar.gz
use the GNU-stack note in linux systems
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index e3b80947a6..a0c4738c42 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -239,7 +239,7 @@ lib/accelerated/x86/elf/%.s: devel/perlasm/%.pl .submodule.stamp
cat $<.license > $@
perl $< elf >> $@
echo "" >> $@
- echo ".section .note.GNU-stack,\"\",%progbits" >> $@
+ echo -e "#if defined(__linux__)\n.section .note.GNU-stack,\"\",%progbits\n#endif\n" >> $@
sed -i 's/OPENSSL_ia32cap_P/_gnutls_x86_cpuid_s/g' $@
lib/accelerated/x86/coff/%-x86.s: devel/perlasm/%-x86.pl .submodule.stamp