From 5c9e502d5b3b7c90f84944950684f6fd705b8f00 Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 22 Sep 2003 21:12:17 +0000 Subject: Fix build on Solaris. From Jonathan Perkin in PR 22896. --- news/newsfetch/patches/patch-aa | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'news/newsfetch/patches/patch-aa') diff --git a/news/newsfetch/patches/patch-aa b/news/newsfetch/patches/patch-aa index abb1c597f8e..4fda96faa56 100644 --- a/news/newsfetch/patches/patch-aa +++ b/news/newsfetch/patches/patch-aa @@ -1,18 +1,32 @@ -$NetBSD: patch-aa,v 1.1.1.1 2000/12/27 23:15:51 hubertf Exp $ +$NetBSD: patch-aa,v 1.2 2003/09/22 21:12:19 wiz Exp $ ---- Makefile.orig Wed Dec 27 23:23:40 2000 -+++ Makefile -@@ -1,7 +1,7 @@ +--- Makefile.orig Mon Nov 13 02:01:49 2000 ++++ Makefile Mon Sep 22 19:38:52 2003 +@@ -1,9 +1,9 @@ # Makefile for newsfetch program - CC = gcc +-CC = gcc -BINDIR = /usr/local/bin -MANDIR = /usr/local/man/man1 ++#CC = gcc +BINDIR = ${PREFIX}/bin +MANDIR = ${PREFIX}/man/man1 - CFLAGS= -O2 # inline opt +-CFLAGS= -O2 # inline opt ++#CFLAGS= -O2 # inline opt -@@ -25,10 +25,8 @@ + # uncomment this for strict checking + #CFLAGS = -O2 -Wall -pedantic -Wstrict-prototypes -fno-strength-reduce +@@ -15,8 +15,7 @@ + objs = newsfetch.o nntp.o net.o opt.o util.o getopt.o + + newsfetch: $(objs) +- $(CC) -o newsfetch $(objs) +- strip newsfetch ++ $(CC) -o newsfetch $(objs) $(LDFLAGS) + + .c.o: + $(CC) -c $(CFLAGS) $< +@@ -25,10 +24,8 @@ rm -f *.o newsfetch install: @@ -20,8 +34,8 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/12/27 23:15:51 hubertf Exp $ -# cp newsfetch.1 $(MANDIR)/newsfetch.1 - cp newsfetch /usr/local/bin - cp newsfetch.1 /usr/local/man/man1 -+ cp newsfetch $(BINDIR)/newsfetch -+ cp newsfetch.1 $(MANDIR)/newsfetch.1 ++ ${BSD_INSTALL_PROGRAM} newsfetch $(BINDIR)/newsfetch ++ ${BSD_INSTALL_MAN} newsfetch.1 $(MANDIR)/newsfetch.1 uninstall: rm -f $(BINDIR)/newsfetch -- cgit v1.2.3