Re: selinux: insufficient M4 detection with building static binaries

2019-04-08 Thread Bruno Haible
Hi Assaf, > > It would be better to instead set LIB_SELINUX to > > "-lselinux -lpcre -lsepol -lpthread" (in the static case). > > This is a better solution, sadly I do not know how to > implement this in M4 (e.g. detecting a static build, > then deducing the required static libraries...). I

Re: selinux: insufficient M4 detection with building static binaries

2019-04-08 Thread Assaf Gordon
Hello Bruno, Thanks for investigating further and the clear explanation. On 2019-04-07 5:08 a.m., Bruno Haible wrote: [] So, these are the libraries that are needed. Apparently libselinux is built in such a way that it needs libdl in the shared build, but libsepol in the static build.