Re: [PATCH] rust: Do not link with libdl and libpthread unconditionally

2024-06-12 Thread Uros Bizjak
cv_search_dlopen" = x"-ldl"; then > >>> pluginlibs="$pluginlibs -ldl" > >>>fi > >>> LIBS="$saved_LIBS" > >>> > >>> which I guess would also work for pthread_create? This would simplify >

Re: [PATCH] rust: Do not link with libdl and libpthread unconditionally

2024-06-11 Thread Arthur Cohen
h's content in configure.ac per your suggestion. Tested similarly on x86_64 and in a container with libc 2.27 LGTM. Thanks, Richard. From 00669b600a75743523c358ee41ab999b6e9fa0f6 Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Fri, 12 Apr 2024 13:52:18 +0200 Subject: [PATCH] rust: Do n

Re: [PATCH] rust: Do not link with libdl and libpthread unconditionally

2024-05-31 Thread Richard Biener
pluginlibs="$pluginlibs -ldl" > > fi > > LIBS="$saved_LIBS" > > > > which I guess would also work for pthread_create? This would simplify > > the code a bit. > > Thanks a lot for the review. I've udpated the patch's co

Re: [PATCH] rust: Do not link with libdl and libpthread unconditionally

2024-05-31 Thread Arthur Cohen
17 00:00:00 2001 From: Arthur Cohen Date: Fri, 12 Apr 2024 13:52:18 +0200 Subject: [PATCH] rust: Do not link with libdl and libpthread unconditionally ChangeLog: * Makefile.tpl: Add CRAB1_LIBS variable. * Makefile.in: Regenerate. * configure: Regenerate. * configur

Re: [PATCH] rust: Do not link with libdl and libpthread unconditionally

2024-04-30 Thread Richard Biener
On Fri, Apr 19, 2024 at 11:49 AM Arthur Cohen wrote: > > Hi everyone, > > This patch checks for the presence of dlopen and pthread_create in libc. If > that is not the > case, we check for the existence of -ldl and -lpthread, as these libraries > are required to > link the Rust runtime to our Ru

[PATCH] rust: Do not link with libdl and libpthread unconditionally

2024-04-19 Thread Arthur Cohen
Hi everyone, This patch checks for the presence of dlopen and pthread_create in libc. If that is not the case, we check for the existence of -ldl and -lpthread, as these libraries are required to link the Rust runtime to our Rust frontend. If these libs are not present on the system, then we di