serenity/Ports/openssl/patches/0001-Add-a-serenity-configuration.patch
2022-05-19 20:17:10 +04:30

49 lines
1.7 KiB
Diff

From 924ba86b0ea438a69f0110ccf16cebe24619d3e1 Mon Sep 17 00:00:00 2001
From: Luke Wilde <lukew@serenityos.org>
Date: Wed, 16 Mar 2022 12:52:30 +0000
Subject: [PATCH 1/2] Add a serenity 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 8ca8235..3dea01f 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -627,6 +627,30 @@ my %targets = (
shared_extension => ".so",
},
+### Serenity
+ "serenity-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 => "serenity-shared",
+ shared_cflag => "-fPIC",
+ shared_ldflag => sub { $disabled{pinshared} ? () : "-Wl,-znodelete" },
+ shared_extension => ".so.\$(SHLIB_VERSION_NUMBER)",
+ },
+
####
#### Variety of LINUX:-)
####
--
2.36.1