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}