mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Drop -I$includedir/alsa from alsa.pc
We used to put the additional include path $includedir/alsa in pkgconfig just because some applications have included asoundlib.h like #include <asoundlib.h> although the canonical form should be #include <alsa/asoundlib.h> However, adding this include path is significantly dangerous due to possible conflicts of file names like version.h. It's already the reason to discourage people using alsa.pc for the packages. In this patch, the additional include path from alsa.pc is dropped finally. At the same time, as a rescue plan for the programs including via <asoundlib.h>, a stub header file is provided in include/sound/asoundlib.h. It just includes alsa/asoundlib.h with a warning to suggest for replacing with alsa/asoundlib.h. Actually this is the same file as we install into sys/asoundlib.h, so the whole changes are very minimal here. Acked-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
f9056d013c
commit
fc0e54c3cc
2 changed files with 2 additions and 3 deletions
|
|
@ -96,3 +96,4 @@ AM_CPPFLAGS=-I$(top_srcdir)/include
|
|||
install-data-hook:
|
||||
test -d $(DESTDIR)$(sysincludedir) || mkdir -p $(DESTDIR)$(sysincludedir)
|
||||
$(INSTALL_DATA) $(srcdir)/sys.h $(DESTDIR)$(sysincludedir)/asoundlib.h
|
||||
$(INSTALL_DATA) $(srcdir)/sys.h $(DESTDIR)$(includedir)/asoundlib.h
|
||||
|
|
|
|||
|
|
@ -9,6 +9,4 @@ Version: @VERSION@
|
|||
Requires:
|
||||
Libs: -L${libdir} -lasound
|
||||
Libs.private: @ALSA_DEPLIBS@
|
||||
# -I${includedir}/alsa below is just for backward compatibility
|
||||
# (it was set so mistakely in the older version)
|
||||
Cflags: -I${includedir} -I${includedir}/alsa
|
||||
Cflags: -I${includedir}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue