You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at https://github.com/vmware/open-vm-tools/blob/stable-10.0.x/open-vm-tools/m4/vmtools.m4#L157
which will also be called for C++ libraries - all cflags from pkg-config will be assigned to cppflags. So even flags which might be c++ compiler compatible only will go in there.
Imho pkg-config -cflags need to go into CFLAGS for C libraries and CXXFLAGS for c++ libraries. And then use the appropriate ones. Right now building fails as libsigx-2.0-dev ships with -std=gnu11 in cflags and your m4 macros assign that to CPPFLAGS which is used for c code, too...
The text was updated successfully, but these errors were encountered:
Looking at
https://github.com/vmware/open-vm-tools/blob/stable-10.0.x/open-vm-tools/m4/vmtools.m4#L157
which will also be called for C++ libraries - all cflags from pkg-config will be assigned to cppflags. So even flags which might be c++ compiler compatible only will go in there.
Imho pkg-config -cflags need to go into CFLAGS for C libraries and CXXFLAGS for c++ libraries. And then use the appropriate ones. Right now building fails as libsigx-2.0-dev ships with -std=gnu11 in cflags and your m4 macros assign that to CPPFLAGS which is used for c code, too...
The text was updated successfully, but these errors were encountered: