From 5875dc3fad83695b1a73e3d91f83ed6f34db1251485f2ec064dcc8843764c4a4 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 24 Mar 2014 06:20:48 +0000 Subject: [PATCH] Accepting request 227237 from home:jengelh:branches:Base:System - SPARC build requires the large PIC model (or else build fails) OBS-URL: https://build.opensuse.org/request/show/227237 OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=56 --- elfutils.changes | 5 +++++ elfutils.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/elfutils.changes b/elfutils.changes index 88ccc67..18aad5d 100644 --- a/elfutils.changes +++ b/elfutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 22 17:19:48 UTC 2014 - jengelh@inai.de + +- SPARC build requires the large PIC model (or else build fails) + ------------------------------------------------------------------- Tue Jan 28 19:22:04 UTC 2014 - tonyj@suse.com diff --git a/elfutils.spec b/elfutils.spec index 98bae12..ec63ad4 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -152,6 +152,10 @@ modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" TIME="\"$(date -d "${modified}" "+%%R")\"" find . -type f -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + +%ifarch %sparc +# Small PIC model not sufficient +export CFLAGS="%optflags -fPIC" +%endif %configure --program-prefix=eu- make %{?_smp_mflags}