Mail Archives: cygwin/2001/11/01/12:41:13
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 -