]> git.alsa-project.org Git - alsa-lib.git/commitdiff
alsa.pc's Libs shouldn't contain -lm -ldl -lpthread
authorJaroslav Kysela <perex@perex.cz>
Fri, 6 Oct 2006 08:38:39 +0000 (10:38 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 6 Oct 2006 08:38:39 +0000 (10:38 +0200)
-lm -ldl -lpthread are _not_ needed in Libs (since the alsa interface
doesn't depend on libm, libdl or libpthread interface) and just bring
unneeded dependencies. These should rather be put in Libs.private:

Libs: -L${libdir} -lasound
Libs.private: -lm -ldl -lpthread

See ALSA bug#2212 .

utils/alsa.pc.in

index 546e487525a96885d65b6aecdcd834b033095530..b64f73a8231b206f72453b7acff3382f43b18f07 100644 (file)
@@ -7,7 +7,8 @@ Name: alsa
 Description: Advanced Linux Sound Architecture (ALSA) - Library
 Version: @VERSION@
 Requires: 
-Libs: -L${libdir} -lasound -lm -ldl -lpthread
+Libs: -L${libdir} -lasound
+Libs.private: -lm -ldl -lpthread
 # -I${includedir}/alsa below is just for backward compatibility
 # (it was set so mistakely in the older version)
 Cflags: -I${includedir} -I${includedir}/alsa