[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to make a selective spec file



Le vendredi 03 février 2006 à 16:51 -0600, Rex Dieter a écrit :
> Eric Tanguy wrote:
> 
> >>Something like this ought to do the trick:
> >>
> >>%if "%{?fedora}" > "4"
> >>CXXFLAGS="${RPM_OPT_FLAGS} -ffriend-injection"
> >>%endif
> >>%configure
> > 
> > It seems it's not taken into account for devel. How to know what
> > %{?fedora} returns for devel ? 
> 
> AFAIK, on devel, %fedora expands to 5 in buildsys-macros
> 
> -- Rex
> 
Maybe in buildsys but i'm trying to build it on a fc4 box using mock : 
mock -r fedora-5-i386-core foobar.spec

and it seems to not be taken into account : 
configure: running /bin/sh './configure' --prefix=/usr
'--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' 'CFLAGS=-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables' 'CXXFLAGS=-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables' 'build_alias=i686-redhat-linux-gnu'
'host_alias=i686-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu'
--cache-file=/dev/null --srcdir=.

Eric



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]