From 27befa6595c9c14bebd0e4f6346ac920d33c2706 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 11 Apr 2021 23:54:59 +0200 Subject: [PATCH] Ports: Fix building the ninja port The build failed because the main symbol has hidden visibility. --- Ports/ninja/patches/visibility.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Ports/ninja/patches/visibility.patch diff --git a/Ports/ninja/patches/visibility.patch b/Ports/ninja/patches/visibility.patch new file mode 100644 index 0000000000..d06ebb54de --- /dev/null +++ b/Ports/ninja/patches/visibility.patch @@ -0,0 +1,11 @@ +diff -Naur ninja-1.8.2/src/ninja.cc ninja-1.8.2.serenity/src/ninja.cc +--- ninja-1.8.2/src/ninja.cc 2017-09-11 03:20:10.000000000 +0200 ++++ ninja-1.8.2.serenity/src/ninja.cc 2021-04-11 23:54:18.156949715 +0200 +@@ -1207,6 +1207,7 @@ + + } // anonymous namespace + ++__attribute__((visibility("default"))) + int main(int argc, char** argv) { + #if defined(_MSC_VER) + // Set a handler to catch crashes not caught by the __try..__except