libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MinGW cleanup patch


From: Peter Ekberg
Subject: MinGW cleanup patch
Date: Wed, 3 Nov 2004 11:50:14 +0100

Hello!

This is about the same as was recently commited for Cygwin,
only this time it solves similar problems on MinGW. I have
tested that it does not break Cygwin, any other $host
should not be affected. The arguments for the patch is the
same as for the previous patch, that is to make
-Werror-implicit-function-declaration work and to give
-Werror a chance to work.

The second hunk is perhaps a bit messy though, some other
solution might be better...

Anyway, I got this when building on MinGW:

/bin/sh ../libtool --mode=link --tag=CC gcc  -g -O2 -D_REENTRANT
-D_THREAD_SAFE -DDEBUG -g -Wall -Wpointer-arith -Wsign-compare
-Wstrict-prototypes -Wswitch -Wmissing-prototypes -Wreturn-type -Wshadow
-Wnested-externs -Wredundant-decls -Werror-implicit-function-declaration
-o demo.exe  demo.o ../gii/libgii.la 
gcc -g -O2 -D_REENTRANT -D_THREAD_SAFE -DDEBUG -g -Wall -Wpointer-arith
-Wsign-compare -Wstrict-prototypes -Wswitch -Wmissing-prototypes
-Wreturn-type -Wshadow -Wnested-externs -Wredundant-decls
-Werror-implicit-function-declaration -o .libs/demo.exe demo.o
../gii/.libs/libgii.dll.a
/c/cygwin/home/peda/ggi-mingw/libgii/gg/.libs/libgg.dll.a -lwsock32
libtool: link: creating demo.exe
.libs/lt-demo.c: In function `main':
.libs/lt-demo.c:112: warning: passing arg 2 of `execv' from incompatible
pointer type
.libs/lt-demo.c: In function `basename':
.libs/lt-demo.c:140: implicit declaration of function `isalpha'

This patch is against branch-2-0 takes away the warning and the error.

Cheers,
Peter

2004-11-03  Peter Ekberg  <spam.protected>

        * ltmain.m4sh (cwrappersource): clean up warnings and
        #include errors on MinGW.

Attachment: win32-wrapper-cleanup2.patch
Description: win32-wrapper-cleanup2.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]