SHA256
3
0
forked from pool/elfutils

Accepting request 227261 from Base:System

- SPARC build requires the large PIC model (or else build fails) (forwarded request 227237 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/227261
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/elfutils?expand=0&rev=42
This commit is contained in:
Stephan Kulow 2014-03-25 12:20:40 +00:00 committed by Git OBS Bridge
commit e6584caaac
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

View File

@ -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}