[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
issue with getopt
From: |
Lorenzo Bettini |
Subject: |
issue with getopt |
Date: |
Sun, 10 Dec 2006 18:42:28 +0100 |
User-agent: |
Thunderbird 1.5.0.8 (Windows/20061025) |
Hi
I've imported getopt from gnulib.
Now when I run configure && make under linux everything works fine:
configure detects getopt and does not compile getopt.c and getopt1.c nor
it includes it in libgnu.a.
when I run the same under windows using cygwin, configure detects getopt:
...
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for getopt_long_only... yes
checking whether optreset is declared... yes
...
but it then builds getopt.c and getopt1.c into libgnu.a:
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT dummy.o -MD -MP -MF
".deps/dummy.Tpo" -c -o dummy.o dummy.c; \
then mv -f ".deps/dummy.Tpo" ".deps/dummy.Po"; else rm -f
".deps/dummy.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT getopt.o -MD -MP -MF
".deps/getopt.Tpo" -c -o getopt.o getopt.c; \
then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f
".deps/getopt.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT getopt1.o -MD -MP -MF
".deps/getopt1.Tpo" -c -o getopt1.o getopt1.c; \
then mv -f ".deps/getopt1.Tpo" ".deps/getopt1.Po"; else rm -f
".deps/getopt1.Tpo"; exit 1; fi
rm -f libgnu.a
ar cru libgnu.a dummy.o getopt.o getopt1.o
ranlib libgnu.a
I suspect this is a bug, isn't it?
Lorenzo
--
+-----------------------------------------------------+
| Lorenzo Bettini ICQ# lbetto, 16080134 |
| PhD in Computer Science, DSI, Univ. di Firenze |
| Florence - Italy (GNU/Linux User # 158233) |
| http://www.lorenzobettini.it |
| http://tronprog.blogspot.com BLOG |
| http://www.purplesucker.com Deep Purple Cover Band |
| http://www.gnu.org/software/src-highlite |
| http://www.gnu.org/software/gengetopt |
| http://www.gnu.org/software/gengen |
| http://doublecpp.sourceforge.net |
+-----------------------------------------------------+
- issue with getopt,
Lorenzo Bettini <=
- Re: issue with getopt, Eric Blake, 2006/12/10
- Re: issue with getopt, Lorenzo Bettini, 2006/12/20
- Re: [bug-gnulib] issue with getopt, Bruno Haible, 2006/12/20
- Re: [bug-gnulib] issue with getopt, Lorenzo Bettini, 2006/12/20
- Re: [bug-gnulib] issue with getopt, Bruce Korb, 2006/12/20
- Re: issue with getopt, Bruno Haible, 2006/12/21
- Re: issue with getopt, Lorenzo Bettini, 2006/12/21