summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2015-03-18 14:54:53 +0000
committerjoerg <joerg@pkgsrc.org>2015-03-18 14:54:53 +0000
commit2ddd3f8bafea2f6bb5928edb1133156e08446d39 (patch)
treeaac0ead84279f28d27d23def005052e6adbb5b11 /pkgtools
parentaa614d06bf7a23e44839a6d68137c0ecdaa2a283 (diff)
downloadpkgsrc-2ddd3f8bafea2f6bb5928edb1133156e08446d39.tar.gz
Drop properly drop -mt and generate.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/cwrappers/files/bin/transform-gcc-rules3
-rw-r--r--pkgtools/cwrappers/files/bin/transform-gcc.c52
2 files changed, 26 insertions, 29 deletions
diff --git a/pkgtools/cwrappers/files/bin/transform-gcc-rules b/pkgtools/cwrappers/files/bin/transform-gcc-rules
index 1397a9f7abd..1b3126dbfd4 100644
--- a/pkgtools/cwrappers/files/bin/transform-gcc-rules
+++ b/pkgtools/cwrappers/files/bin/transform-gcc-rules
@@ -1,4 +1,4 @@
-# $NetBSD: transform-gcc-rules,v 1.1 2014/09/17 12:40:56 joerg Exp $
+# $NetBSD: transform-gcc-rules,v 1.2 2015/03/18 14:54:53 joerg Exp $
#
# Copyright (c) 2009 Joerg Sonnenberger <joerg@NetBSD.org>.
# All rights reserved.
@@ -167,6 +167,5 @@
-kpic ==> -fPIC
-KPIC ==> -fPIC
-kPIC ==> -fPIC
--mt ==> -threads
-64 ==> -m64
-* ==!
diff --git a/pkgtools/cwrappers/files/bin/transform-gcc.c b/pkgtools/cwrappers/files/bin/transform-gcc.c
index 0fae0559923..414afdddece 100644
--- a/pkgtools/cwrappers/files/bin/transform-gcc.c
+++ b/pkgtools/cwrappers/files/bin/transform-gcc.c
@@ -3,35 +3,34 @@
static uint32_t
transform_cc_fixed(const void * __restrict key, size_t keylen)
{
- static const uint8_t g[221] = {
- 0x00, 0x6b, 0x00, 0x3d, 0x12, 0x21, 0x67, 0x16, 0x0d, 0x0b,
- 0x00, 0x1e, 0x00, 0x45, 0x0a, 0x0b, 0x00, 0x52, 0x00, 0x00,
- 0x00, 0x4a, 0x00, 0x2a, 0x00, 0x00, 0x5c, 0x2a, 0x45, 0x68,
- 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x2a,
- 0x12, 0x57, 0x00, 0x43, 0x2f, 0x29, 0x00, 0x00, 0x00, 0x38,
- 0x67, 0x00, 0x00, 0x00, 0x00, 0x36, 0x50, 0x04, 0x00, 0x08,
- 0x32, 0x52, 0x00, 0x00, 0x3e, 0x67, 0x1f, 0x45, 0x00, 0x0f,
- 0x5b, 0x00, 0x00, 0x00, 0x00, 0x50, 0x58, 0x62, 0x00, 0x00,
- 0x17, 0x6b, 0x29, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x46, 0x00,
- 0x69, 0x00, 0x47, 0x19, 0x27, 0x00, 0x00, 0x00, 0x00, 0x2e,
- 0x00, 0x00, 0x2e, 0x00, 0x00, 0x39, 0x19, 0x68, 0x64, 0x00,
- 0x36, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x40, 0x00, 0x06, 0x43,
- 0x00, 0x00, 0x00, 0x6b, 0x00, 0x5f, 0x3f, 0x3c, 0x00, 0x51,
- 0x00, 0x00, 0x00, 0x39, 0x00, 0x04, 0x00, 0x41, 0x3e, 0x5e,
- 0x00, 0x00, 0x00, 0x56, 0x4b, 0x00, 0x17, 0x00, 0x00, 0x00,
- 0x47, 0x40, 0x00, 0x00, 0x00, 0x11, 0x0e, 0x00, 0x59, 0x33,
- 0x3f, 0x52, 0x00, 0x18, 0x42, 0x14, 0x00, 0x00, 0x00, 0x00,
- 0x18, 0x00, 0x00, 0x00, 0x68, 0x6b, 0x00, 0x00, 0x00, 0x2c,
- 0x1a, 0x00, 0x12, 0x00, 0x31, 0x00, 0x00, 0x16, 0x4a, 0x00,
- 0x00, 0x1a, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x3a, 0x00,
- 0x00, 0x00, 0x54, 0x4b, 0x00, 0x4c, 0x53, 0x1c, 0x00, 0x00,
- 0x00, 0x6d, 0x00, 0x00, 0x6b, 0x24, 0x00, 0x00, 0x22, 0x00,
- 0x00,
+ static const uint8_t g[219] = {
+ 0x00, 0x00, 0x00, 0x14, 0x00, 0x35, 0x49, 0x15, 0x53, 0x45,
+ 0x56, 0x00, 0x12, 0x1b, 0x40, 0x00, 0x00, 0x3b, 0x3a, 0x00,
+ 0x00, 0x50, 0x00, 0x00, 0x06, 0x00, 0x18, 0x00, 0x00, 0x00,
+ 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x62, 0x4c, 0x00, 0x00, 0x1f, 0x3c, 0x00, 0x3d, 0x00, 0x00,
+ 0x15, 0x00, 0x03, 0x00, 0x1c, 0x10, 0x00, 0x00, 0x4a, 0x00,
+ 0x33, 0x00, 0x00, 0x00, 0x50, 0x00, 0x15, 0x00, 0x00, 0x00,
+ 0x24, 0x27, 0x3f, 0x24, 0x46, 0x00, 0x6a, 0x00, 0x00, 0x32,
+ 0x66, 0x00, 0x00, 0x48, 0x60, 0x01, 0x6b, 0x00, 0x28, 0x10,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x20, 0x4c, 0x33, 0x00,
+ 0x32, 0x61, 0x08, 0x54, 0x00, 0x00, 0x48, 0x00, 0x4c, 0x56,
+ 0x00, 0x5f, 0x00, 0x00, 0x00, 0x5b, 0x55, 0x64, 0x68, 0x2f,
+ 0x00, 0x5a, 0x64, 0x51, 0x00, 0x00, 0x00, 0x26, 0x4e, 0x00,
+ 0x00, 0x0e, 0x00, 0x00, 0x00, 0x6c, 0x13, 0x1c, 0x00, 0x00,
+ 0x0c, 0x00, 0x00, 0x09, 0x2e, 0x00, 0x0d, 0x00, 0x00, 0x1e,
+ 0x12, 0x00, 0x23, 0x3e, 0x58, 0x00, 0x00, 0x36, 0x00, 0x0f,
+ 0x00, 0x0e, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x29, 0x30,
+ 0x00, 0x4f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0x00,
+ 0x00, 0x13, 0x00, 0x00, 0x25, 0x65, 0x00, 0x00, 0x31, 0x00,
+ 0x00, 0x32, 0x29, 0x22, 0x54, 0x41, 0x14, 0x00, 0x00, 0x00,
+ 0x00, 0x5e, 0x05, 0x38, 0x2e, 0x00, 0x00, 0x00, 0x38, 0x5f,
+ 0x43, 0x00, 0x1e, 0x44, 0x26, 0x00, 0x00, 0x4e, 0x19,
};
uint32_t h[3];
- mi_vector_hash(key, keylen, 0xcee3bdd8U, h);
- return (g[h[0] % 221] + g[h[1] % 221]) % 110;
+ mi_vector_hash(key, keylen, 0x507ed7abU, h);
+ return (g[h[0] % 219] + g[h[1] % 219]) % 109;
}
static struct transformation fixed_transforms[] = {
@@ -143,7 +142,6 @@ static struct transformation fixed_transforms[] = {
{ "-kpic", 5, transform_replace, "-fPIC" },
{ "-KPIC", 5, transform_replace, "-fPIC" },
{ "-kPIC", 5, transform_replace, "-fPIC" },
- { "-mt", 3, transform_discard, NULL },
{ "-64", 3, transform_replace, "-m64" },
};