[openwrt/openwrt] scripts: bundle-libraries: fix build on OS X (FS#1493)
LEDE Commits
lede-commits at lists.infradead.org
Thu Apr 26 07:07:00 PDT 2018
jow pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/746c590882b96d5ed4d4115e4bdab4c838af7806
commit 746c590882b96d5ed4d4115e4bdab4c838af7806
Author: Jo-Philipp Wich <jo at mein.io>
AuthorDate: Thu Apr 26 16:04:37 2018 +0200
scripts: bundle-libraries: fix build on OS X (FS#1493)
This allegedly fixes compilation of the library bundler preload library on
Apple OS X. The resulting executables have not been runtime tested due to a
lack of suitable test hardware.
Signed-off-by: Jo-Philipp Wich <jo at mein.io>
---
scripts/bundle-libraries.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/bundle-libraries.sh b/scripts/bundle-libraries.sh
index bfe681a..620ee01 100755
--- a/scripts/bundle-libraries.sh
+++ b/scripts/bundle-libraries.sh
@@ -87,7 +87,11 @@ _runas_so() {
return 0;
}
+ #ifdef __APPLE__
+ __attribute__((section("__DATA,__mod_init_func")))
+ #else
__attribute__((section(".init_array")))
+ #endif
static void *mangle_arg0_constructor = &mangle_arg0;
EOT
More information about the lede-commits
mailing list