diff --git a/games-emulation/dosbox/patches/powf.patch b/games-emulation/dosbox/patches/powf.patch index 5f3f309ae..ac3732b23 100644 --- a/games-emulation/dosbox/patches/powf.patch +++ b/games-emulation/dosbox/patches/powf.patch @@ -1,12 +1,11 @@ diff --git a/configure.in b/configure.in -index 016ea95..b114016 100644 +index 016ea95..f222548 100644 --- a/configure.in +++ b/configure.in -@@ -120,16 +120,6 @@ d_test.d_type = 0; - }],[AC_MSG_RESULT(yes);AC_DEFINE(DIRENT_HAS_D_TYPE,1,[struct dirent has d_type])],AC_MSG_RESULT(no)) +@@ -121,13 +121,7 @@ d_test.d_type = 0; --dnl Check for powf + dnl Check for powf -AC_MSG_CHECKING(for powf in libm); -LIBS_BACKUP=$LIBS; -LIBS="$LIBS -lm"; @@ -14,8 +13,7 @@ index 016ea95..b114016 100644 - powf(1.0f, 1.0f); -]])], [AC_MSG_RESULT(yes)], [AC_DEFINE([DB_HAVE_NO_POWF],[1],[libm doesn't include powf])]) -LIBS=$LIBS_BACKUP -- -- - dnl Checks for libraries. ++AC_SEARCH_LIBS([powf],[m], [AC_MSG_RESULT(yes)], [AC_DEFINE([DB_HAVE_NO_POWF],[1],[no powf function avalible])]) - #Check if the compiler support attributes + + dnl Checks for libraries.