Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v1] Block linker flag '--no-undefined'
@ 2020-07-06 12:51 Alexander V. Tikhonov
  2020-07-06 20:41 ` Alexander Turenko
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Alexander V. Tikhonov @ 2020-07-06 12:51 UTC (permalink / raw)
  To: Kirill Yukhin, Alexander Turenko; +Cc: tarantool-patches

Found that opensuse adding linker flag '--no-undefined' which produces
the fails on building tests. Decided to block this flag due to dynamic
libraries will be loaded from tarantool executable and will use symbols
from it. So it is completely okay to have unresolved symbols at build
time.

Relates to tarantool/tarantool#4562
---

Github: https://github.com/tarantool/luajit/tree/avtikhon/gh-4562-suse-block-linker-flag
Issue: https://github.com/tarantool/tarantool/issues/4562

 test/gh-4427-ffi-sandwich/CMakeLists.txt | 1 +
 test/lj-flush-on-trace/CMakeLists.txt    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/test/gh-4427-ffi-sandwich/CMakeLists.txt b/test/gh-4427-ffi-sandwich/CMakeLists.txt
index 995c6bb..6028381 100644
--- a/test/gh-4427-ffi-sandwich/CMakeLists.txt
+++ b/test/gh-4427-ffi-sandwich/CMakeLists.txt
@@ -1 +1,2 @@
+string(REPLACE "-Wl,--no-undefined" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
 build_lualib(libsandwich libsandwich.c)
diff --git a/test/lj-flush-on-trace/CMakeLists.txt b/test/lj-flush-on-trace/CMakeLists.txt
index a90452d..4f2f956 100644
--- a/test/lj-flush-on-trace/CMakeLists.txt
+++ b/test/lj-flush-on-trace/CMakeLists.txt
@@ -1 +1,2 @@
+string(REPLACE "-Wl,--no-undefined" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
 build_lualib(libflush libflush.c)
-- 
2.17.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-07-14 11:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 12:51 [Tarantool-patches] [PATCH v1] Block linker flag '--no-undefined' Alexander V. Tikhonov
2020-07-06 20:41 ` Alexander Turenko
2020-07-08 11:37 ` Igor Munkin
2020-07-08 14:25   ` Alexander V. Tikhonov
2020-07-08 19:22   ` Alexander Turenko
2020-07-09  5:41     ` Alexander V. Tikhonov
2020-07-09 19:14       ` Igor Munkin
2020-07-14 11:39 ` Kirill Yukhin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox