delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/01/12:41:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <drobinow AT dayton DOT adroit DOT com>
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)

 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019