1.1 --- a/libpixman/libpixman.spec Thu Oct 04 20:00:55 2012 +0200 1.2 +++ b/libpixman/libpixman.spec Thu Oct 04 20:04:22 2012 +0200 1.3 @@ -32,7 +32,10 @@ 1.4 Group: XWindow 1.5 License: MIT-style 1.6 Version: 0.26.2 1.7 -Release: 20120630 1.8 +Release: 20120800 1.9 + 1.10 +# package options 1.11 +%option with_pic no 1.12 1.13 # list of sources 1.14 Source0: http://cairographics.org/releases/pixman-%{version}.tar.gz 1.15 @@ -59,7 +62,12 @@ 1.16 1.17 %build 1.18 CC="%{l_cc}" \ 1.19 +%if "%{with_pic}" == "yes" 1.20 + CFLAGS="%{l_cflags -O} -fPIC" \ 1.21 + LDFLAGS="%{l_cflags -O} -fPIC" \ 1.22 +%else 1.23 CFLAGS="%{l_cflags -O}" \ 1.24 +%endif 1.25 ./configure \ 1.26 --prefix=%{l_prefix} \ 1.27 --disable-gtk \