Red Hat Bugzilla – Bug 123374
SDL-devel, libSDL.la, and libasound.so
Last modified: 2007-11-30 17:10:42 EST
Version-Release number of selected component: SDL-1.2.7-3
Description of problem:
Some 3rd party package fail to rebuild because of bad informations in
the libSDL.la file.
[root@gruyere /usr/lib]# grep asound libSDL.la
dependency_libs=' -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext
the "-lasound" is not necessary and linking will report no problem if
I simply remove the -lasound from the libSDL.la. I suggest any of
these 3 fix:
1. Exclude the libSDL.la file from the package
2. Make SDL-devel requires alsa-lib-devel
3. Edit the libSDL.la and remove the -lasound.
*hm* Spoken too soon. It seems only "2." is valid, since if you want
to staticaly link against libSDL.a you will need libasound.a.
Fixed in rawhide in rpm SDL-1.2.7-4 or newer.