Newer
Older
minerva / Ports / openssl / patches / 0001-Add-a-minerva-configuration.patch
@minerva minerva on 13 Jul 1 KB Initial commit
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Luke Wilde <lukew@serenityos.org>
Date: Wed, 16 Mar 2022 12:52:30 +0000
Subject: [PATCH] Add a minerva configuration

Co-Authored-By: Rodrigo Tobar <rtobarc@gmail.com>
---
 Configurations/10-main.conf | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
index 8010087b46dcea332f586d440b442fa1bcf3e34d..ee25d4c1be22f7eade443a5d48c3df60f4c7a6f1 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -672,6 +672,30 @@ my %targets = (
         shared_extension => ".so",
     },
 
+### Minerva
+    "minerva-generic" => {
+        inherit_from     => [ "BASE_unix" ],
+        CC               => "gcc",
+        CXX              => "g++",
+        CFLAGS           => picker(default => "-Wall",
+                                   debug   => "-O0 -g",
+                                   release => "-O3"),
+        CXXFLAGS         => picker(default => "-Wall",
+                                   debug   => "-O0 -g",
+                                   release => "-O3"),
+        cflags           => threads("-pthread"),
+        cxxflags         => combine("-std=c++11", threads("-pthread")),
+        lib_cppflags     => "-DOPENSSL_USE_NODELETE",
+        ex_libs          => add("-ldl", threads("-pthread")),
+        bn_ops           => "BN_LLONG RC4_CHAR",
+        thread_scheme    => "pthreads",
+        dso_scheme       => "dlfcn",
+        shared_target    => "minerva-shared",
+        shared_cflag     => "-fPIC",
+        shared_ldflag    => sub { $disabled{pinshared} ? () : "-Wl,-znodelete" },
+        shared_extension => ".so.\$(SHLIB_VERSION_NUMBER)",
+    },
+
 ####
 #### Variety of LINUX:-)
 ####