summaryrefslogtreecommitdiff
path: root/Ports/openssl/patches/0002-Add-build-configuration-info-for-serenity.patch
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-05-17 21:26:30 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-05-19 20:17:10 +0430
commit2c71a62e0910d3d34b096124cd6997ac14926a8d (patch)
tree7b1d0d3fa1757c06a5ce3d403ce18c56931aaaba /Ports/openssl/patches/0002-Add-build-configuration-info-for-serenity.patch
parent6e5509183f1b183d899cce9079f6d63a9e0e5e6d (diff)
downloadserenity-2c71a62e0910d3d34b096124cd6997ac14926a8d.zip
Ports: Update openssl's patches to use git patches
Diffstat (limited to 'Ports/openssl/patches/0002-Add-build-configuration-info-for-serenity.patch')
-rw-r--r--Ports/openssl/patches/0002-Add-build-configuration-info-for-serenity.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/Ports/openssl/patches/0002-Add-build-configuration-info-for-serenity.patch b/Ports/openssl/patches/0002-Add-build-configuration-info-for-serenity.patch
new file mode 100644
index 0000000000..7c60fd2b61
--- /dev/null
+++ b/Ports/openssl/patches/0002-Add-build-configuration-info-for-serenity.patch
@@ -0,0 +1,31 @@
+From 191753ac1b680d24d76558209d9e26fd6d0ce372 Mon Sep 17 00:00:00 2001
+From: Luke Wilde <lukew@serenityos.org>
+Date: Wed, 16 Mar 2022 12:52:30 +0000
+Subject: [PATCH 2/2] Add build configuration info for serenity
+
+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
+index 47eddd6..ab04a19 100644
+--- a/Configurations/shared-info.pl
++++ b/Configurations/shared-info.pl
+@@ -34,6 +34,13 @@ my %shared_info;
+ shared_defflag => '-Wl,--version-script=',
+ };
+ },
++ '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'}; },
+ 'bsd-shared' => sub {
+ return $shared_info{'gnu-shared'} if detect_gnu_ld();
+--
+2.36.1
+