Edit

IABSD.fr/ports/audio/adplay/patches

Branch :

  • Show log

    Commit

  • Author : fcambus
    Date : 2026-02-09 22:24:22
    Hash : 72e87ee3
    Message : Update adplay to 1.9.

  • patch-configure
  • Stop hardcoding -lstdc++.
    
    Index: configure
    --- configure.orig
    +++ configure
    @@ -20041,53 +20041,6 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAG
     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     
     
    -# Nothing works without these libraries...
    -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
    -printf %s "checking for main in -lstdc++... " >&6; }
    -if test ${ac_cv_lib_stdcpp_main+y}
    -then :
    -  printf %s "(cached) " >&6
    -else case e in #(
    -  e) ac_check_lib_save_LIBS=$LIBS
    -LIBS="-lstdc++  $LIBS"
    -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    -/* end confdefs.h.  */
    -
    -namespace conftest {
    -  extern "C" int main ();
    -}
    -int
    -main (void)
    -{
    -return conftest::main ();
    -  ;
    -  return 0;
    -}
    -_ACEOF
    -if ac_fn_cxx_try_link "$LINENO"
    -then :
    -  ac_cv_lib_stdcpp_main=yes
    -else case e in #(
    -  e) ac_cv_lib_stdcpp_main=no ;;
    -esac
    -fi
    -rm -f core conftest.err conftest.$ac_objext conftest.beam \
    -    conftest$ac_exeext conftest.$ac_ext
    -LIBS=$ac_check_lib_save_LIBS ;;
    -esac
    -fi
    -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
    -printf "%s\n" "$ac_cv_lib_stdcpp_main" >&6; }
    -if test "x$ac_cv_lib_stdcpp_main" = xyes
    -then :
    -  printf "%s\n" "#define HAVE_LIBSTDC__ 1" >>confdefs.h
    -
    -  LIBS="-lstdc++ $LIBS"
    -
    -else case e in #(
    -  e) as_fn_error $? "libstdc++ not installed" "$LINENO" 5 ;;
    -esac
    -fi