From f4f9a22c021806c790944876bc7333f19be14351 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Mon, 14 Sep 2015 14:02:47 +0200 Subject: [PATCH] Build obj files with -fpic --- pbzip2.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pbzip2.spec b/pbzip2.spec index 9c99ccd..1e7351d 100644 --- a/pbzip2.spec +++ b/pbzip2.spec @@ -29,7 +29,11 @@ f=AUTHORS; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 && mv $f.utf8 $f %build -CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" make %{?_smp_mflags} +export CFLAGS="-fpic %{optflags}" +export CXXFLAGS="-fpic %{optflags}" +export LDFLAGS="%{?__global_ldflags}" + +make %{?_smp_mflags} %install