libtheora doesn't build with non-GCC due to --version-script
libtheora should only use the --version-script option if GCC is the compiler being used. If other compilers are used, the build fails. The following patch tests to see if the GCC linker is being used, and only adds the --version-script option if so. Patch built against libtheora-1.0alpha5/
--- libtheora-1.0alpha5/configure.ac-orig 2005-09-21 16:07:38.679494000 -0 500 +++ libtheora-1.0alpha5/configure.ac 2005-09-21 16:15:34.785544000 -0500 @@ -104,14 +104,22 @@ CFLAGS="$CFLAGS $cflags_save" LDFLAGS="$LDFLAGS $ldflags_save"
-dnl Set extra linker options -case "$target_os" in +# Test whenever ld supports -version-script +AC_PROG_LD +AC_PROG_LD_GNU +if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
- SHLIB_VERSION_ARG="Wl,--version-script=Version_script"
- dnl Set extra linker options
- case "$target_os" in linux* | solaris* ) SHLIB_VERSION_ARG="-Wl,--version-script=Version_script" ;; *) ;; -esac
- esac +fi
AC_SUBST(SHLIB_VERSION_ARG)
dnl --------------------------------------------------