diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-09-07 23:19:40 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-07 23:19:40 +0000 |
commit | 51370feb1e76720b6fc17115b56f1bd9d223850a (patch) | |
tree | df5e1d7e4c02bbbfffff523d49ae2bae63860b3c /media-libs/libsdl/files | |
parent | check prefix rather than libdir (diff) | |
download | gentoo-2-51370feb1e76720b6fc17115b56f1bd9d223850a.tar.gz gentoo-2-51370feb1e76720b6fc17115b56f1bd9d223850a.tar.bz2 gentoo-2-51370feb1e76720b6fc17115b56f1bd9d223850a.zip |
Fix dlvsym check so it works and doesnt break uClibc/etc... #105160.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'media-libs/libsdl/files')
-rw-r--r-- | media-libs/libsdl/files/libsdl-1.2.9-dlvsym-check.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/media-libs/libsdl/files/libsdl-1.2.9-dlvsym-check.patch b/media-libs/libsdl/files/libsdl-1.2.9-dlvsym-check.patch new file mode 100644 index 000000000000..95ed1d40469e --- /dev/null +++ b/media-libs/libsdl/files/libsdl-1.2.9-dlvsym-check.patch @@ -0,0 +1,26 @@ +simply trying a compile to see if a func exists is not enough + +check to see if the dlvsym func exists in the dl library instead + +--- configure.in ++++ configure.in +@@ -313,18 +313,8 @@ CheckALSA() + CFLAGS="$CFLAGS -DALSA_SUPPORT -DALSA_DYNAMIC=\$(alsa_lib) $ALSA_CFLAGS" + AC_SUBST(alsa_lib) + +- AC_MSG_CHECKING(for dlvsym) + use_dlvsym=no +- AC_TRY_COMPILE([ +- #include <stdio.h> +- #define __USE_GNU +- #include <dlfcn.h> +- ],[ +- dlvsym(NULL,"",""); +- ],[ +- use_dlvsym=yes +- ]) +- AC_MSG_RESULT($use_dlvsym); ++ AC_CHECK_LIB(dl, dlvsym, [use_dlvsym=yes]) + if test x$use_dlvsym = xyes; then + CFLAGS="$CFLAGS -DUSE_DLVSYM" + fi |