Skip to content

Commit

Permalink
Fix compiling C with mingw32-make.exe.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Sep 14, 2015
1 parent 5adccf1 commit ec5ec6d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ build_config()
echo "LIBDL=-ldl"
echo "RDYNAMIC="
echo "LDFLAGS+=-Wl,--no-undefined -Wl,--as-needed"
# If the host system is MinGW running on Windows, then cause make to
# treat all .c files as C and not use CXX. mingw32-make is case
# insensitive, and .C is considered C++.
if uname -s | grep -iq mingw ; then
echo "%.o: %.c"
printf "\t\$(CC) -c \$(CFLAGS) \$(CPPFLAGS) -o \$@ \$<\n"
fi
;;
*)
;;
Expand Down

0 comments on commit ec5ec6d

Please sign in to comment.