Hello, Le dimanche 03 juillet 2022 à 16:52 +0200, Bruno Haible a écrit : > +Here @code{BUILDING_SHARED} is a C macro that you have to define. > It > +ought to evaluate to 1 in a build configured with @samp{--enable- > shared}, > +or to 0 in a build configured with @samp{--disable-shared}.
That’s interesting. I don’t know how to do it at the moment; the configure script automatically gets a --enable-shared=… flag but I can’t find a trace of it in config.log, and I don’t know how to use it. Could you elaborate on how to get a value for BUILDING_SHARED with autoconf? Also, if both shared and static libraries are compiled, does it mean that they should get compiled twice, with different compiler flags? Vivien