Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <80575AFA5F0DD31197CE00805F650D7602D058@wilber.adroit.com> From: "Robinow, David" To: cygwin AT cygwin DOT com Subject: RE: getopt problem Date: Thu, 1 Nov 2001 12:40:59 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Patch appended. Still some warnings. I have not tested this. -----Original Message----- From: Joshua Franklin [mailto:joshuadfranklin AT yahoo DOT com] Sent: Thursday, November 01, 2001 11:37 AM To: cygwin AT cygwin DOT com Cc: vsatish AT vsnl DOT com Subject: Re: getopt problem getopt is a separate program AFAIK it's not been compiled for cygwin. You can get sources at http://huizen.dds.nl/~frodol/getopt.html ------------------------------------------------- --- Makefile Thu Nov 1 12:34:59 2001 +++ Makefile.works Thu Nov 1 12:32:53 2001 @@ -1,7 +1,7 @@ .SUFFIXES: DESTDIR= -prefix=/usr/local +prefix=/usr bindir=$(prefix)/bin mandir=$(prefix)/man man1dir=$(mandir)/man1 @@ -11,7 +11,7 @@ localedir=$(sharedir)/locale # Define this to 0 to use the getopt(3) routines in this package. -LIBCGETOPT=1 +LIBCGETOPT=0 # Define this to 0 if you do not have the gettext routines WITH_GETTEXT=1 @@ -39,7 +39,7 @@ -Wnested-externs -Winline OPTIMIZE=-O3 -fno-strength-reduce CFLAGS=$(WARNINGS) $(OPTIMIZE) -LDFLAGS= +LDFLAGS=-lintl sources=getopt.c ifeq ($(LIBCGETOPT),0) @@ -57,7 +57,7 @@ -$(RM) $(objects) $(binaries) getopt: $(objects) - $(CC) $(LDFLAGS) -o $@ $(objects) + $(CC) -o $@ $(objects) $(LDFLAGS) install: getopt install_po $(INSTALL) -m 755 -d $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/