Skip to content

Commit

Permalink
autotools: Eliminate libgcc*.dll dependency in mingw builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Jan 3, 2025
1 parent dd7fce5 commit 4a28594
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -13548,6 +13548,8 @@ case "$host" in
fi
use_version_rc=true
LT_EXTRA="-Wl,src/version.o"
# Eliminate libgcc*.dll dependency.
CFLAGS="$CFLAGS -static-libgcc"
;;
*-*-darwin*)
# Check whether --enable-imageio was given.
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ case "$host" in
fi
use_version_rc=true
LT_EXTRA="-Wl,src/version.o"
# Eliminate libgcc*.dll dependency.
CFLAGS="$CFLAGS -static-libgcc"
;;
*-*-darwin*)
AC_ARG_ENABLE([imageio], [AS_HELP_STRING([--enable-imageio], [use native Mac OS X frameworks for loading images [default=yes]])],
Expand Down
2 changes: 1 addition & 1 deletion ltmain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4785,7 +4785,7 @@ func_mode_link ()
# -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
# @file GCC response files
-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|-static-*|@*)
func_quote_for_eval "$arg"
arg="$func_quote_for_eval_result"
func_append compile_command " $arg"
Expand Down

0 comments on commit 4a28594

Please sign in to comment.