media-libs/libsdl2: Never delete libSDL2main.a and libSDL2_test.a
authorJames Le Cuirot <chewi@gentoo.org>
Tue, 11 Feb 2020 22:35:13 +0000 (22:35 +0000)
committerJames Le Cuirot <chewi@gentoo.org>
Tue, 11 Feb 2020 22:35:13 +0000 (22:35 +0000)
These are mandatory are they may be needed even when linking
dynamically.

Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
media-libs/libsdl2/libsdl2-2.0.10-r2.ebuild [moved from media-libs/libsdl2/libsdl2-2.0.10-r1.ebuild with 97% similarity]

similarity index 97%
rename from media-libs/libsdl2/libsdl2-2.0.10-r1.ebuild
rename to media-libs/libsdl2/libsdl2-2.0.10-r2.ebuild
index ba7791dcca78530bc8b7cc593cd066b42dac7f5b..25492c58c019404be2648bbd2722a8b99ba2aecc 100644 (file)
@@ -185,9 +185,8 @@ multilib_src_install() {
 }
 
 multilib_src_install_all() {
+       # Do not delete the static .a libraries here as some are
+       # mandatory. They may be needed even when linking dynamically.
        find "${ED}" -type f -name "*.la" -delete || die
-       if ! use static-libs ; then
-               find "${ED}" -type f -name "*.a" -delete || die
-       fi
        dodoc {BUGS,CREDITS,README,README-SDL,TODO,WhatsNew}.txt docs/README*.md
 }