mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 10:05:32 +00:00
49 lines
1.7 KiB
Diff
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
|
|
|