[vlc-devel] [PATCH 1/2] tests: Do not use -static for hxxx on darwin

Dennis Hamester dhamester at jusst.de
Thu Mar 16 15:04:15 CET 2017



On 16.03.2017 14:52, Rémi Denis-Courmont wrote:
> On jeudi 16 mars 2017 12:20:35 EET Marvin Scholz wrote:
>> ---
>>
>> I don't know why this was added or what it is for, but it causes the
>> resulting binary not running due to failure loading libs, therefore
>> causing a test failure.
> 
> info libtool
> 
>> If -static is actually important here and the failure is a result of a
>> problem elsewhere, please let me know. This was just the easiest way I
>> found to get the hxxx test binary running.
>>
>>  test/Makefile.am | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/test/Makefile.am b/test/Makefile.am
>> index 8d4ae30..03dacc4 100644
>> --- a/test/Makefile.am
>> +++ b/test/Makefile.am
>> @@ -124,7 +124,9 @@ test_src_interface_dialog_SOURCES =
>> src/interface/dialog.c test_src_interface_dialog_LDADD = $(LIBVLCCORE)
>> $(LIBVLC)
>>  test_modules_packetizer_hxxx_SOURCES = modules/packetizer/hxxx.c
>>  test_modules_packetizer_hxxx_LDADD = $(LIBVLC)
>> +if !HAVE_DARWIN
>>  test_modules_packetizer_hxxx_LDFLAGS = -no-install -static # WTF
>> +endif
>>  test_modules_keystore_SOURCES = modules/keystore/test.c
>>  test_modules_keystore_LDADD = $(LIBVLCCORE) $(LIBVLC)
>>  test_modules_tls_SOURCES = modules/misc/tls.c
> 
> Removing -no-install makes no sense: Those targets are not meant to be 
> installed. In fact, -no-install should be set for all noinst_- and 
> check_PROGRAMS targets (and obviously MUST NOT be used for any other PROGRAMS 
> target).
> 
> I am not sure if -static still carries any meaning, since libvlc and 
> libvlccore are not built statically in any case. IIRC, in some versions of 
> libtool, it is or was necessary to make -no-install actually work. But it 
> might also be cargo cult. But maybe ask whomever wrote "# WTF" there??

We are linking libvlc, libvlccore and all modules statically on NaCl.
Android does the same as far as I know. I'm not saying this has any
immediate relevance to the patch, just that libvlc/libvlccore are not
necessarily "not built statically in any case".

> 
> So in any case, this does not look right.
> 

-- 
Dennis Hamester
Software Development
-----------------------------------
jusst technologies GmbH

tel: +49 (0)40 1800 86 75
fax: +49 (0)40 1800 86 76
mail: dhamester at jusst.de

Ohlstedter Straße 12
22397 Hamburg
Deutschland

www.jusst.de

Vertretungsberechtigte Geschäftsführer: Julian Scheel, Wolfgang Scheel
Registergericht: Amtsgericht Hamburg
Registernummer: HRB 94300
USt-ID-Nr.: DE 243309917

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 862 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170316/69c20e80/attachment.sig>


More information about the vlc-devel mailing list