Skip to content

Commit 4c1e9a2

Browse files
committed
NetBSD src for "user", checkout.sh rev 72574de0336afaf6a9551faad9b08359d01f5e81
1 parent 453ba35 commit 4c1e9a2

File tree

155 files changed

+1808
-1973
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+1808
-1973
lines changed

crypto/external/bsd/openssl/dist/CHANGES

+136-85
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
HOW TO CONTRIBUTE TO OpenSSL
2+
----------------------------
3+
4+
Development is coordinated on the openssl-dev mailing list (see
5+
http://www.openssl.org for information on subscribing). If you
6+
would like to submit a patch, send it to [email protected] with
7+
the string "[PATCH]" in the subject. Please be sure to include a
8+
textual explanation of what your patch does.
9+
10+
You can also make GitHub pull requests. If you do this, please also send
11+
mail to [email protected] with a brief description and a link to the PR so
12+
that we can more easily keep track of it.
13+
14+
If you are unsure as to whether a feature will be useful for the general
15+
OpenSSL community please discuss it on the openssl-dev mailing list first.
16+
Someone may be already working on the same thing or there may be a good
17+
reason as to why that feature isn't implemented.
18+
19+
Patches should be as up to date as possible, preferably relative to the
20+
current Git or the last snapshot. They should follow our coding style
21+
(see https://www.openssl.org/policies/codingstyle.html) and compile without
22+
warnings using the --strict-warnings flag. OpenSSL compiles on many varied
23+
platforms: try to ensure you only use portable features.
24+
25+
Our preferred format for patch files is "git format-patch" output. For example
26+
to provide a patch file containing the last commit in your local git repository
27+
use the following command:
28+
29+
# git format-patch --stdout HEAD^ >mydiffs.patch
30+
31+
Another method of creating an acceptable patch file without using git is as
32+
follows:
33+
34+
# cd openssl-work
35+
# [your changes]
36+
# ./Configure dist; make clean
37+
# cd ..
38+
# diff -ur openssl-orig openssl-work > mydiffs.patch

crypto/external/bsd/openssl/dist/Configure

+15-2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ my $usage="Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [experimenta
105105

106106
my $gcc_devteam_warn = "-Wall -pedantic -DPEDANTIC -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wshadow -Wformat -Werror -DCRYPTO_MDEBUG_ALL -DCRYPTO_MDEBUG_ABORT -DREF_CHECK -DOPENSSL_NO_DEPRECATED";
107107

108+
my $clang_devteam_warn = "-Wno-unused-parameter -Wno-missing-field-initializers -Wno-language-extension-token -Wno-extended-offsetof -Qunused-arguments";
109+
108110
my $strict_warnings = 0;
109111

110112
my $x86_gcc_des="DES_PTR DES_RISC1 DES_UNROLL";
@@ -197,6 +199,7 @@ my %table=(
197199
"debug-linux-generic32","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -g -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
198200
"debug-linux-generic64","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
199201
"debug-linux-x86_64","gcc:-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -m64 -DL_ENDIAN -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64",
202+
"debug-linux-x86_64-clang","clang: -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -m64 -DL_ENDIAN -g -Wall -Qunused-arguments::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64",
200203
"dist", "cc:-O::(unknown)::::::",
201204

202205
# Basic configs that should work on any (32 and less bit) box
@@ -361,6 +364,7 @@ my %table=(
361364
"linux-ia64-ecc","ecc:-DL_ENDIAN -O2 -Wall -no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
362365
"linux-ia64-icc","icc:-DL_ENDIAN -O2 -Wall -no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_INT:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
363366
"linux-x86_64", "gcc:-m64 -DL_ENDIAN -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64",
367+
"linux-x86_64-clang","clang: -m64 -DL_ENDIAN -O3 -Wall -Qunused-arguments::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64",
364368
"linux64-s390x", "gcc:-m64 -DB_ENDIAN -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${s390x_asm}:64:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64",
365369
#### So called "highgprs" target for z/Architecture CPUs
366370
# "Highgprs" is kernel feature first implemented in Linux 2.6.32, see
@@ -1574,11 +1578,20 @@ if ($shlib_version_number =~ /(^[0-9]*)\.([0-9\.]*)/)
15741578

15751579
if ($strict_warnings)
15761580
{
1581+
my $ecc = $cc;
1582+
$ecc = "clang" if `$cc --version 2>&1` =~ /clang/;
15771583
my $wopt;
1578-
die "ERROR --strict-warnings requires gcc" unless ($cc =~ /gcc$/);
1584+
die "ERROR --strict-warnings requires gcc or clang" unless ($ecc =~ /gcc$/ or $ecc =~ /clang$/);
15791585
foreach $wopt (split /\s+/, $gcc_devteam_warn)
15801586
{
1581-
$cflags .= " $wopt" unless ($cflags =~ /$wopt/)
1587+
$cflags .= " $wopt" unless ($cflags =~ /(^|\s)$wopt(\s|$)/)
1588+
}
1589+
if ($ecc eq "clang")
1590+
{
1591+
foreach $wopt (split /\s+/, $clang_devteam_warn)
1592+
{
1593+
$cflags .= " $wopt" unless ($cflags =~ /(^|\s)$wopt(\s|$)/)
1594+
}
15821595
}
15831596
}
15841597

0 commit comments

Comments
 (0)