$NetBSD: patch-ab,v 1.3 2013/04/12 22:26:44 drochner Exp $ --- Makefile.orig 2012-08-12 09:07:43.000000000 +0000 +++ Makefile @@ -1,7 +1,7 @@ .SUFFIXES: DESTDIR= -prefix=/usr/local +prefix=${PREFIX} bindir=$(prefix)/bin mandir=$(prefix)/man man1dir=$(mandir)/man1 @@ -10,10 +10,10 @@ getoptdir=$(sharedir)/getopt localedir=$(sharedir)/locale # Define this to 0 to use the getopt(3) routines in this package. -LIBCGETOPT=1 +LIBCGETOPT=0 # Define this to 1 if you do not have the gettext routines -WITHOUT_GETTEXT=0 +WITHOUT_GETTEXT=1 # For creating the archive PACKAGE=getopt @@ -23,8 +23,6 @@ UNLIKELYNAME=a8vwjfd92 SHELL=/bin/sh -CC=gcc -LD=ld RM=rm -f INSTALL=install MSGFMT=msgfmt @@ -42,8 +40,7 @@ WARNINGS=-Wall \ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ -Wnested-externs -Winline OPTIMIZE=-O3 -fno-strength-reduce -CFLAGS=$(WARNINGS) $(OPTIMIZE) -LDFLAGS= +CFLAGS+=$(WARNINGS) sources=getopt.c ifeq ($(LIBCGETOPT),0)