components/nettle/patches/01_elf.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Wed, 06 Jan 2016 04:19:50 -0800
changeset 5232 902d18d42945
parent 4677 6bacf1a9d9ea
permissions -rw-r--r--
22503479 Upgrade Wireshark to version 1.12.9 22496202 problem in UTILITY/WIRESHARK 22501938 problem in UTILITY/WIRESHARK 22501946 problem in UTILITY/WIRESHARK 22501961 problem in UTILITY/WIRESHARK 22501972 problem in UTILITY/WIRESHARK 22501980 problem in UTILITY/WIRESHARK 22501994 problem in UTILITY/WIRESHARK 22502001 problem in UTILITY/WIRESHARK 22502011 problem in UTILITY/WIRESHARK 22502019 problem in UTILITY/WIRESHARK 22502029 problem in UTILITY/WIRESHARK 22502036 problem in UTILITY/WIRESHARK 22502052 problem in UTILITY/WIRESHARK 22502063 problem in UTILITY/WIRESHARK 22502077 problem in UTILITY/WIRESHARK 22502092 problem in UTILITY/WIRESHARK 22502104 problem in UTILITY/WIRESHARK 22502112 problem in UTILITY/WIRESHARK 22502124 problem in UTILITY/WIRESHARK 22502136 problem in UTILITY/WIRESHARK 22502147 problem in UTILITY/WIRESHARK 22502156 problem in UTILITY/WIRESHARK 22502172 problem in UTILITY/WIRESHARK

#
# This patch makes the changes necessary to use SunPro compiler.
# This patch is developed in-house.
# 
--- ORIGINAL/./configure.ac	2015-07-02 14:46:58.958979352 -0700
+++ nettle-3.1.1/./configure.ac	2015-07-02 14:52:39.915550201 -0700
@@ -694,16 +694,32 @@
        [nettle_cv_asm_type_hash_function=yes],
        [nettle_cv_asm_type_hash_function=no])])
 
+  AC_CACHE_CHECK([[for ELF-style .type,@function pseudo-ops]],
+    [nettle_cv_asm_type_at_function],
+    [GMP_TRY_ASSEMBLE([
+.text
+.globl foo
+.type foo,@function
+foo:
+.Lend:
+
+.size foo, .Lend - foo
+],
+	[nettle_cv_asm_type_at_function=yes],
+	[nettle_cv_asm_type_at_function=no])])
+
   if test x$nettle_cv_asm_type_percent_function = xyes ; then
     ASM_ELF_STYLE='yes'
     ASM_TYPE_FUNCTION='%function'
     ASM_TYPE_PROGBITS='%progbits'
-  else
-    if test x$nettle_cv_asm_type_hash_function = xyes ; then
+  elif test x$nettle_cv_asm_type_hash_function = xyes ; then
       ASM_ELF_STYLE='yes'
       ASM_TYPE_FUNCTION='#function'
       ASM_TYPE_PROGBITS='#progbits'
-    fi
+  elif test x$nettle_cv_asm_type_at_function = xyes ; then
+      ASM_ELF_STYLE='yes'
+      ASM_TYPE_FUNCTION='@function'
+      ASM_TYPE_PROGBITS='@progbits'
   fi
 
   AC_CACHE_CHECK([for COFF-style .type directive],