On 2023/01/15 10:22, SASANO Takayoshi wrote: > Hi, > > > Let's keep it simple like: > > /usr/local/lib/alsa-lib/... > > /usr/local/include/alsa-lib/... > > Really? I thought: > > /usr/local/alsa-lib/include > /usr/local/alsa-lib/lib > > (how about /usr/local/linux-alsa/{include,lib}?) > > Both are not difficult to write alsa-lib's Makefile > but very hard to porting apps to /usr/local/lib/alsa-lib and > /usr/local/include/alsa-lib. > > In alsa-utils, about 50 or more files are needed to be patched > if header files are stored into /usr/local/include/alsa-lib .
They do not, files would go in /usr/local/include/alsa-lib/alsa/xxx, add -I/usr/local/include/alsa-lib to CPPFLAGS (or CFLAGS if the build system doesn't cope with CPPFLAGS). Similar with LDFLAGS for libraries (and setting rpath may be needed too). Though porting to sndio is still *much* preferred.