[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Fri Jan 29 17:32:27 UTC 2016


The branch master has been updated
       via  ddf47a10cd351a9e09fb8886d0567e997fa75e55 (commit)
      from  f8206c8e24ddc502c6ed1652824b2c6dc886fb5e (commit)


- Log -----------------------------------------------------------------
commit ddf47a10cd351a9e09fb8886d0567e997fa75e55
Author: Richard Levitte <levitte at openssl.org>
Date:   Fri Jan 29 17:35:17 2016 +0100

    Make use of add() and add_before() in Configurations/
    
    A few more sub-joins could be replaced with calls to add() and add_before()
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 Configurations/00-base-templates.conf |  2 +-
 Configurations/10-main.conf           | 18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/Configurations/00-base-templates.conf b/Configurations/00-base-templates.conf
index 2ff2c2a..68ad5a8 100644
--- a/Configurations/00-base-templates.conf
+++ b/Configurations/00-base-templates.conf
@@ -112,7 +112,7 @@
     mips64_asm => {
 	inherit_from	=> [ "mips32_asm" ],
 	template	=> 1,
-	sha1_obj        => sub { join(" ", @_, "sha512-mips.o") }
+	sha1_obj        => add("sha512-mips.o")
     },
     s390x_asm => {
 	template	=> 1,
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
index 32e4e15..929e79e 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -53,7 +53,7 @@
         # with "Illegal mnemonic" error message.
         inherit_from     => [ "solaris-common", asm("x86_elf_asm") ],
         cc               => "gcc",
-        cflags           => sub { join(" ","-march=pentium -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM", at _) },
+        cflags           => add_before("-march=pentium -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM"),
         debug_cflags     => "-O0 -g",
         release_cflags   => "-O3 -fomit-frame-pointer",
         thread_cflag     => "-pthread",
@@ -72,7 +72,7 @@
         #					<appro at fy.chalmers.se>
         inherit_from     => [ "solaris-common", asm("x86_64_asm") ],
         cc               => "gcc",
-        cflags           => sub { join(" ","-m64 -Wall -DL_ENDIAN", at _) },
+        cflags           => add_before("-m64 -Wall -DL_ENDIAN"),
         debug_cflags     => "-O0 -g",
         release_cflags   => "-O3",
         thread_cflag     => "-pthread",
@@ -87,11 +87,11 @@
     "solaris-x86-cc" => {
         inherit_from     => [ "solaris-common" ],
         cc               => "cc",
-        cflags           => sub { join(" ","-xarch=generic -xstrconst -Xa -DL_ENDIAN", at _) },
+        cflags           => add_before("-xarch=generic -xstrconst -Xa -DL_ENDIAN"),
         debug_cflags     => "-g",
         release_cflags   => "-xO5 -xregs=frameptr -xdepend -xbuiltin",
         thread_cflag     => "-D_REENTRANT",
-        lflags           => sub { join(" ", at _,"-mt -lpthread") },
+        lflags           => add("-mt -lpthread"),
         bn_ops           => "BN_LLONG RC4_CHAR",
         shared_cflag     => "-KPIC",
         shared_ldflag    => "-G -dy -z text",
@@ -99,11 +99,11 @@
     "solaris64-x86_64-cc" => {
         inherit_from     => [ "solaris-common", asm("x86_64_asm") ],
         cc               => "cc",
-        cflags           => sub { join(" ","-xarch=generic64 -xstrconst -Xa -DL_ENDIAN", at _) },
+        cflags           => add_before("-xarch=generic64 -xstrconst -Xa -DL_ENDIAN"),
         debug_cflags     => "-g",
         release_cflags   => "-xO5 -xdepend -xbuiltin",
         thread_cflag     => "-D_REENTRANT",
-        lflags           => sub { join(" ", at _,"-mt -lpthread") },
+        lflags           => add("-mt -lpthread"),
         bn_ops           => "SIXTY_FOUR_BIT_LONG",
         perlasm_scheme   => "elf",
         shared_cflag     => "-KPIC",
@@ -115,7 +115,7 @@
     "solaris-sparcv7-gcc" => {
         inherit_from     => [ "solaris-common" ],
         cc               => "gcc",
-        cflags           => sub { join(" ","-Wall -DB_ENDIAN -DBN_DIV2W", at _) },
+        cflags           => add_before("-Wall -DB_ENDIAN -DBN_DIV2W"),
         debug_cflags     => "-O0 -g",
         release_cflags   => "-O3",
         thread_cflag     => "-pthread",
@@ -149,11 +149,11 @@
     "solaris-sparcv7-cc" => {
         inherit_from     => [ "solaris-common" ],
         cc               => "cc",
-        cflags           => sub { join(" ","-xstrconst -Xa -DB_ENDIAN -DBN_DIV2W", at _) },
+        cflags           => add_before("-xstrconst -Xa -DB_ENDIAN -DBN_DIV2W"),
         debug_cflags     => "-g -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG",
         release_cflags   => "-xO5 -xdepend",
         thread_cflag     => "-D_REENTRANT",
-        lflags           => sub { join(" ", at _,"-mt -lpthread") },
+        lflags           => add("-mt -lpthread"),
         bn_ops           => "BN_LLONG RC4_CHAR",
         shared_cflag     => "-KPIC",
         shared_ldflag    => "-G -dy -z text",


More information about the openssl-commits mailing list