Daniel Pocock
2013-07-24 07:53:38 UTC
I've come across a project that is installing config.h when "make
install" is invoked
The project in question is the SRTP library. Some of the headers are
actually dependent on some config.h stuff, for example:
https://github.com/cisco/libsrtp/blob/master/crypto/include/integers.h
has a lot of conditional logic
The result of including that extra copy of config.h is that when I build
other projects, the compiler has two copies of config.h available and
complains about the redefinition of things like PACKAGE_NAME. It's
quite possible that there are less obvious side-effects as well.
Can anybody comment on the right way to do this? Should integers.h
(above) be changed? Or should other projects using libsrtp find ways to
work around this?
install" is invoked
The project in question is the SRTP library. Some of the headers are
actually dependent on some config.h stuff, for example:
https://github.com/cisco/libsrtp/blob/master/crypto/include/integers.h
has a lot of conditional logic
The result of including that extra copy of config.h is that when I build
other projects, the compiler has two copies of config.h available and
complains about the redefinition of things like PACKAGE_NAME. It's
quite possible that there are less obvious side-effects as well.
Can anybody comment on the right way to do this? Should integers.h
(above) be changed? Or should other projects using libsrtp find ways to
work around this?