瀏覽代碼

fix static vs. extern issue under GCC 4.0

Ralf S. Engelschall 19 年之前
父節點
當前提交
c27fdb869e
共有 2 個文件被更改,包括 17 次插入1 次删除
  1. 16 0
      cryptlib/cryptlib.patch
  2. 1 1
      cryptlib/cryptlib.spec

+ 16 - 0
cryptlib/cryptlib.patch

@@ -11,3 +11,19 @@ Index: random/unix.c
  #include "crypt.h"
  
  /* Unix and Unix-like systems share the same makefile, make sure that the
+Index: cert/ext_def.c
+--- cert/ext_def.c.orig	2005-08-14 22:34:44 +0200
++++ cert/ext_def.c	2006-05-16 09:20:41 +0200
+@@ -116,9 +116,9 @@
+    highest warning level enabled, this produces a compiler warning, so we
+    turn the warning off for this module */
+ 
+-extern const ATTRIBUTE_INFO FAR_BSS generalNameInfo[];
+-extern const ATTRIBUTE_INFO FAR_BSS holdInstructionInfo[];
+-extern const ATTRIBUTE_INFO FAR_BSS contentTypeInfo[];
++static const ATTRIBUTE_INFO FAR_BSS generalNameInfo[];
++static const ATTRIBUTE_INFO FAR_BSS holdInstructionInfo[];
++static const ATTRIBUTE_INFO FAR_BSS contentTypeInfo[];
+ 
+ #if defined( _MSC_VER )
+   #pragma warning( disable: 4211 )

+ 1 - 1
cryptlib/cryptlib.spec

@@ -37,7 +37,7 @@ Class:        EVAL
 Group:        Cryptography
 License:      MIT-style
 Version:      %{V_full}
-Release:      20050906
+Release:      20060516
 
 #   list of sources
 Source0:      ftp://ftp.franken.de/pub/crypt/cryptlib/cl%{V_comp}.zip