dos2unix: gcc2 build fix.

This commit is contained in:
Jerome Duval
2015-06-10 12:01:25 +00:00
parent 47e0382510
commit 34ad90d657
2 changed files with 24 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ LICENSE="BSD (2-clause)"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PATCHES="dos2unix-$portVersion.patchset"
PROVIDES="
dos2unix = $portVersion compat >= 7
cmd:dos2unix

View File

@@ -0,0 +1,22 @@
From f07adf8c1b98791a1d736d6d67248f3255fc9ee4 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 10 Jun 2015 12:00:08 +0000
Subject: gcc2 patch
diff --git a/Makefile b/Makefile
index 994cec7..c562c08 100644
--- a/Makefile
+++ b/Makefile
@@ -270,7 +270,7 @@ endif
CFLAGS_USER =
CFLAGS ?= -O2
-CFLAGS += -Wall -Wextra -Wconversion $(RPM_OPT_FLAGS) $(CPPFLAGS) $(CFLAGS_USER)
+CFLAGS += -Wall -Wconversion $(RPM_OPT_FLAGS) $(CPPFLAGS) $(CFLAGS_USER)
EXTRA_CFLAGS = -DVER_REVISION=\"$(DOS2UNIX_VERSION)\" \
-DVER_DATE=\"$(DOS2UNIX_DATE)\" \
--
2.2.2