mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: EWouters <6179932+EWouters@users.noreply.github.com>
|
|
Date: Tue, 12 Apr 2022 17:58:24 +0200
|
|
Subject: [PATCH] Add SerenityOS to the mrsh build system
|
|
|
|
---
|
|
configure | 6 ++++--
|
|
libmrsh.serenity.sym | 7 +++++++
|
|
2 files changed, 11 insertions(+), 2 deletions(-)
|
|
create mode 100644 libmrsh.serenity.sym
|
|
|
|
diff --git a/configure b/configure
|
|
index c0e918e..1bf7d26 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -230,9 +230,11 @@ else
|
|
fi
|
|
|
|
printf "Checking for exported symbol restrictions... "
|
|
-if ! \
|
|
+if ! (\
|
|
test_ldflags -Wl,--version-script="libmrsh.gnu.sym" || \
|
|
- test_ldflags -Wl,-exported_symbols_list,"libmrsh.darwin.sym"
|
|
+ test_ldflags -Wl,-exported_symbols_list,"libmrsh.darwin.sym" || \
|
|
+ test_ldflags -Wl,--version-script="libmrsh.serenity.sym"
|
|
+)
|
|
then
|
|
echo no
|
|
echo "Unable to specify exported symbols (is $(uname) supported?)" >&2
|
|
diff --git a/libmrsh.serenity.sym b/libmrsh.serenity.sym
|
|
new file mode 100644
|
|
index 0000000..33de4a1
|
|
--- /dev/null
|
|
+++ b/libmrsh.serenity.sym
|
|
@@ -0,0 +1,7 @@
|
|
+{
|
|
+ global:
|
|
+ mrsh_*;
|
|
+ main;
|
|
+ local:
|
|
+ *;
|
|
+};
|
|
\ No newline at end of file
|