2022-06-05 01:05:04 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2023-07-18 18:37:56 +00:00
|
|
|
From: Kenneth Myhra <kennethmyhra@gmail.com>
|
|
|
|
Date: Tue, 18 Jul 2023 18:58:14 +0200
|
2022-06-05 01:05:04 +00:00
|
|
|
Subject: [PATCH] Add build configuration info for serenity
|
2022-05-17 16:56:30 +00:00
|
|
|
|
2023-07-18 18:37:56 +00:00
|
|
|
Co-Authored-By: Luke Wilde <lukew@serenityos.org>
|
2022-05-17 16:56:30 +00:00
|
|
|
Co-Authored-By: Rodrigo Tobar <rtobarc@gmail.com>
|
|
|
|
---
|
|
|
|
Configurations/shared-info.pl | 7 +++++++
|
|
|
|
1 file changed, 7 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/Configurations/shared-info.pl b/Configurations/shared-info.pl
|
2023-07-18 18:37:56 +00:00
|
|
|
index edd16f405594a7e0d25d479e7e04272679bf8061..04852a65793c2ad4f53615d9c6c054ea0760e80a 100644
|
2022-05-17 16:56:30 +00:00
|
|
|
--- a/Configurations/shared-info.pl
|
|
|
|
+++ b/Configurations/shared-info.pl
|
2023-07-18 18:37:56 +00:00
|
|
|
@@ -39,6 +39,13 @@ my %shared_info;
|
|
|
|
: '-Wl,-z,defs',
|
2022-05-17 16:56:30 +00:00
|
|
|
};
|
|
|
|
},
|
|
|
|
+ 'serenity-shared' => {
|
|
|
|
+ shared_ldflag => '-shared',
|
|
|
|
+ shared_sonameflag => '-Wl,-soname=',
|
|
|
|
+ # -Map is not really what should be used here, but we need a flag that
|
|
|
|
+ # accepts a filename and that it's '-version-map'
|
|
|
|
+ shared_defflag => "-Wl,-Map=",
|
|
|
|
+ },
|
|
|
|
'bsd-gcc-shared' => sub { return $shared_info{'linux-shared'}; },
|
2023-07-18 18:37:56 +00:00
|
|
|
'darwin-shared' => {
|
|
|
|
module_ldflags => '-bundle',
|