Re: Setting libXXX_la_CPPFLAGS and libXXX_la_CFLAGS erases AM_CPPFLAGS and AM_CFLAGS

2022-11-18 Thread Jan Engelhardt
On Friday 2022-11-18 22:57, Russ Allbery wrote: >madmurphy writes: > >> However, if at the same time I set also the libfoo_la_CPPFLAGS variable (no >> matter the content), as in the following example, > >> AM_CPPFLAGS = \ >> "-DLIBFOO_BUILD_MESSAGE=\"correctly defined via AM_CPPFLAGS\"" >>

Re: Setting libXXX_la_CPPFLAGS and libXXX_la_CFLAGS erases AM_CPPFLAGS and AM_CFLAGS

2022-11-18 Thread Russ Allbery
madmurphy writes: > However, if at the same time I set also the libfoo_la_CPPFLAGS variable (no > matter the content), as in the following example, > AM_CPPFLAGS = \ >"-DLIBFOO_BUILD_MESSAGE=\"correctly defined via AM_CPPFLAGS\"" > ... > libfoo_la_CPPFLAGS = \ >"-DLIBFOO_DUMMY=

Setting libXXX_la_CPPFLAGS and libXXX_la_CFLAGS erases AM_CPPFLAGS and AM_CFLAGS

2022-11-18 Thread madmurphy
Hi, If I create a library named libfoo containing the following code (example attached), #include "libfoo.h" #ifndef LIBFOO_BUILD_MESSAGE #define LIBFOO_BUILD_MESSAGE "undefined" #endif int libfoo_func() { printf("Message from the build system: " LIBFOO_BUILD_MESSAGE "\n"); ret