Hi Kevin,
Looks pretty good, but you need to set a few environment
variables before running configure to set the optimisation
level, etc.
Also, because gobby is C++ code, there is some extra
magic needed to make sure -norunpath is preserved (libtool
tends to make it disappear):
On Thu, 2008-08-21 at 16:17 +0100, Kevin McAreavey wrote:
> %build
> CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
> if test "x$CPUS" = "x" -o $CPUS = 0; then
> CPUS=1
> fi
>
> autoconf
export CFLAGS="%optflags"
export CXXFLAGS="%cxx_optflags"
export LDFLAGS="%_ldflags"
%if %cc_is_gcc
%else
export CXX="${CXX} -norunpath"
%endif
> ./configure --prefix=%{_prefix} --mandir=%{_mandir} \
> --libdir=%{_libdir} \
> --libexecdir=%{_libexecdir} \
> --sysconfdir=%{_sysconfdir} \
> --with-gnome
Laca