From 2c3d2d57149d8de4e65a9a861bc5cb1473d59f27 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 17 Feb 2016 18:42:42 +0100 Subject: [PATCH] fdupes: use our {C,LD}FLAGS --- srcpkgs/fdupes/patches/makefile-fix.patch | 23 +++++++++++++++++++++++ srcpkgs/fdupes/template | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/fdupes/patches/makefile-fix.patch diff --git a/srcpkgs/fdupes/patches/makefile-fix.patch b/srcpkgs/fdupes/patches/makefile-fix.patch new file mode 100644 index 00000000000..f32fe1cf41b --- /dev/null +++ b/srcpkgs/fdupes/patches/makefile-fix.patch @@ -0,0 +1,23 @@ +--- Makefile.orig ++++ Makefile +@@ -72,9 +72,9 @@ + # Make Configuration + # + CC = gcc +-COMPILER_OPTIONS = -Wall -O -g ++CFLAGS ?= -Wall -O -g + +-CFLAGS= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT) ++CFLAGS += -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT) + + INSTALL_PROGRAM = $(INSTALL) -c -m 0755 + INSTALL_DATA = $(INSTALL) -c -m 0644 +@@ -94,7 +94,7 @@ + all: fdupes + + fdupes: $(OBJECT_FILES) +- $(CC) $(CFLAGS) -o fdupes $(OBJECT_FILES) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o fdupes $(OBJECT_FILES) + + installdirs: + test -d $(BIN_DIR) || $(MKDIR) $(BIN_DIR) diff --git a/srcpkgs/fdupes/template b/srcpkgs/fdupes/template index 28840372d8b..fe8cce80284 100644 --- a/srcpkgs/fdupes/template +++ b/srcpkgs/fdupes/template @@ -1,7 +1,7 @@ # Template file for 'fdupes' pkgname=fdupes version=1.51 -revision=5 +revision=6 distfiles="https://github.com/adrianlopezroche/fdupes/archive/$pkgname-$version.tar.gz" checksum=761e16d4ecfef7302c62fe7ef1e181cd34f5c6ce5377dcad96e3ed44fb364986 maintainer="Steven R "