fdupes: use our {C,LD}FLAGS

This commit is contained in:
Alessio Sergi 2016-02-17 18:42:42 +01:00
parent 8033691f78
commit 2c3d2d5714
2 changed files with 24 additions and 1 deletions

View File

@ -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)

View File

@ -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 <dev@styez.com>"