SHA256
1
0
forked from pool/elfutils

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
This commit is contained in:
Stephan Kulow 2014-03-24 06:20:48 +00:00 committed by Git OBS Bridge
parent f0f9e87f4c
commit 5875dc3fad
2 changed files with 9 additions and 0 deletions

View File

@ -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 Tue Jan 28 19:22:04 UTC 2014 - tonyj@suse.com

View File

@ -152,6 +152,10 @@ modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\"" TIME="\"$(date -d "${modified}" "+%%R")\""
find . -type f -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + 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- %configure --program-prefix=eu-
make %{?_smp_mflags} make %{?_smp_mflags}