pkgsrc/sysutils/rename/patches/patch-aa
jperkin cfa97e56bd rename: Various fixes to resolve PR#52559
- Add LICENSE.
- Use INSTALLATION_DIRS.
- Honour pkgsrc CFLAGS and remove broken BUILDLINK_TRANSFORM.
- Add patch comments.

Bump PKGREVISION for the LICENSE change and in case any CFLAGS were not
honoured correctly.
2017-09-20 11:03:14 +00:00

21 lines
452 B
Text

$NetBSD: patch-aa,v 1.2 2017/09/20 11:03:14 jperkin Exp $
Use pkgsrc CFLAGS
Do not strip by default
--- Makefile.in.orig 2002-05-19 03:28:34.000000000 +0000
+++ Makefile.in
@@ -15,9 +15,11 @@ OBJS = rename.o fixtoken.o misc.o @LIBOB
all: rename
+$(OBJS):
+ $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
+
rename: $(OBJS)
- $(CC) $(CFLAGS) -o $@ $^
- strip $@
+ $(CC) $(CFLAGS) $(DEFINES) -o $@ $^
static: $(OBJS)
$(CC) $(CFLAGS) -static -o $@ $^