summaryrefslogtreecommitdiff
path: root/security/cryptlib/files/patch-tools_ccopts.sh
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2006-07-14 07:06:17 +0000
committerAlex Dupre <ale@FreeBSD.org>2006-07-14 07:06:17 +0000
commit51d271f40fff76ccb26210ec15919cc25fc6de68 (patch)
treed1aac173005e479aa98b79af0ffc7bf29c44d976 /security/cryptlib/files/patch-tools_ccopts.sh
parentUpdate to the 20060713 snapshot of GCC 4.0.4. (diff)
Update to 3.2.3 release:
- OPTIONSify (respect CFLAGS / OPTIMIZED_CFLAGS) - Add support for PKCS#11 tokens - Grap maintainership
Notes
Notes: svn path=/head/; revision=167763
Diffstat (limited to 'security/cryptlib/files/patch-tools_ccopts.sh')
-rw-r--r--security/cryptlib/files/patch-tools_ccopts.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/security/cryptlib/files/patch-tools_ccopts.sh b/security/cryptlib/files/patch-tools_ccopts.sh
new file mode 100644
index 000000000000..9e438eb8b043
--- /dev/null
+++ b/security/cryptlib/files/patch-tools_ccopts.sh
@@ -0,0 +1,16 @@
+--- tools/ccopts.sh.orig Fri Jul 14 08:37:59 2006
++++ tools/ccopts.sh Fri Jul 14 08:38:19 2006
+@@ -129,13 +129,6 @@
+ # "version gcc" (we can't use just "gcc" by itself since this appears
+ # elsewhere in the gcc -v output).
+
+-if [ `uname -m | grep "i[3,4,5,6]86"` > /dev/null ] ; then
+- if [ `gcc --version 2>&1 | head -n 1 | tr -d '[A-Za-z]. ()' | cut -c 1` -gt 2 ] ; then
+- CCARGS="$CCARGS -march=pentium" ;
+- else
+- CCARGS="$CCARGS -mcpu=pentium" ;
+- fi
+-fi
+
+ # Check for gcc 4.x with its stupid default setting of -Wpointer-sign,
+ # which leads to endless warnings about signed vs.unsigned char problems -