[grass] Compile gem/Makefile with -fPIC to fix FTBFS
Devrim GÜNDÜZ
devrim at fedoraproject.org
Thu Mar 19 09:16:15 UTC 2015
commit 504bfced9f022df1098cdd3bd93811be9e2cf4db
Author: Devrim Gündüz <devrim at gunduz.org>
Date: Thu Mar 19 11:15:53 2015 +0200
Compile gem/Makefile with -fPIC to fix FTBFS
0005-gem-makefile.patch | 11 +++++++++++
grass.spec | 4 ++++
2 files changed, 15 insertions(+)
---
diff --git a/0005-gem-makefile.patch b/0005-gem-makefile.patch
new file mode 100644
index 0000000..4d62abf
--- /dev/null
+++ b/0005-gem-makefile.patch
@@ -0,0 +1,11 @@
+--- gem/Makefile.old 2015-03-19 11:05:39.814000000 +0200
++++ gem/Makefile 2015-03-19 11:05:48.276000000 +0200
+@@ -1,7 +1,7 @@
+ GRASS_VERSION_MAJOR=6
+ GRASS_VERSION_MINOR=4
+ CC=gcc
+-CFLAGS=-g -Wall -pedantic -Werror-implicit-function-declaration -fno-common
++CFLAGS=-g -Wall -pedantic -Werror-implicit-function-declaration -fno-common -fPIC
+ CLIBS=
+
+ SRCS = at_exit_funcs.c \
diff --git a/grass.spec b/grass.spec
index f9eaf94..699b614 100644
--- a/grass.spec
+++ b/grass.spec
@@ -42,6 +42,9 @@ Patch2: 0003-grass-docfiles.patch
# Address -Werror-format-string-security issues.
Patch3: 0004-Eliminate-Werror-format-string-security-issues.patch
+# gem/Makefile overrides CFLAGS
+Patch4: 0005-gem-makefile.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: proj-nad proj-epsg wxPython
@@ -132,6 +135,7 @@ GRASS (Geographic Resources Analysis Support System) development headers.
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p0
# Correct mysql_config query
sed -i 's|--libmysqld-libs|--libs|g' configure
More information about the scm-commits
mailing list