Geoffrey Lee wrote:

> Well then if you like how about running %configure you do this before you run
> make:
> 
> find . -type f -exec perl -pi -e "s|-fno-exceptions|-fexceptions|g" {} \;
Not very clean to run configure with false argument, and then modify its
result...
I'd prefer to run directly the configure script (without the macro), but
then imagine use all options defined in original macro, that is :
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
%{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} ;
\
./configure %{_target_platform} \\\
        --prefix=%{_prefix} \\\
        --exec-prefix=%{_exec_prefix} \\\
        --bindir=%{_bindir} \\\
        --sbindir=%{_sbindir} \\\
        --sysconfdir=%{_sysconfdir} \\\
        --datadir=%{_datadir} \\\
        --includedir=%{_includedir} \\\
        --libdir=%{_libdir} \\\
        --libexecdir=%{_libexecdir} \\\
        --localstatedir=%{_localstatedir} \\\
        --sharedstatedir=%{_sharedstatedir} \\\
        --mandir=%{_mandir} \\\
        --infodir=%{_infodir}

What i'm looking for is just a simple way of specifying an alternate
compilation flag for this package, as default one don't work.
-- 
Guillaume Rousse

Murphy's law : If anything can go wrong, it will.
O'Tool's commentary : Murphy was an optimist.

Reply via email to