Skip to content

Commit

Permalink
fix exports from MinGW builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Jan 14, 2021
1 parent f55dc70 commit 97dfb97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions configure
Expand Up @@ -15574,6 +15574,7 @@ fi

ac_config_files="$ac_config_files Makefile decoders/Makefile decoders/timidity/Makefile examples/Makefile"


cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
Expand Down Expand Up @@ -17923,6 +17924,7 @@ test $ac_write_fail = 0 ||
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
{ (exit 1); exit 1; }; }

sed -i 's/-DDLL_EXPORT/-DSDL_SOUND_DLL_EXPORTS/' config.status

# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
Expand Down
3 changes: 2 additions & 1 deletion configure.in
Expand Up @@ -323,11 +323,12 @@ dnl Add Makefile conditionals
AM_CONDITIONAL(USE_TIMIDITY, test x$enable_midi = xyes)
AM_CONDITIONAL(USE_SDL2, test x$enable_sdl2 = xyes)

dnl
AC_CONFIG_FILES([
Makefile
decoders/Makefile
decoders/timidity/Makefile
examples/Makefile
])
dnl fix exports from MinGW builds
AC_CONFIG_COMMANDS_POST([sed -i 's/-DDLL_EXPORT/-DSDL_SOUND_DLL_EXPORTS/' config.status])
AC_OUTPUT

0 comments on commit 97dfb97

Please sign in to comment.