From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp45.i.mail.ru (smtp45.i.mail.ru [94.100.177.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id AD456445320 for ; Mon, 6 Jul 2020 23:42:37 +0300 (MSK) Date: Mon, 6 Jul 2020 23:41:49 +0300 From: Alexander Turenko Message-ID: <20200706204149.323kurjfjhqtpval@tkn_work_nb> References: <81870339991bd3f54fc532b631f48d8bf4aa2b57.1594039762.git.avtikhon@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <81870339991bd3f54fc532b631f48d8bf4aa2b57.1594039762.git.avtikhon@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v1] Block linker flag '--no-undefined' List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Alexander V. Tikhonov" Cc: tarantool-patches@dev.tarantool.org LGTM except two comments below. Please, ask Igor to do the second review. > Block linker flag '--no-undefined' I would highlight the fact that it is for testing libs, not the main library / executable. Like so: '...for testing .so'. > 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}") Can you add the same clarification as you do for tarantool's patch?