Have you try:


RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -e s/-fno-exceptions/-fexceptions/) [1]

[1] I assume here that you want exceptions.


On Sat, Dec 16, 2000 at 04:15:53PM +0400, Guillaume Rousse wrote:
> I have this fatal exception when trying to build a package, whereas i
> have no problem when compiling it directly. So i guess it is caused by
> rpm default compiling flags for C++ (exceptions disabled, apparently)..
> How can i change this behavior in specfile ?
> 
> make[2]: Entre dans le répertoire
> `/home/guillaume/RPM/BUILD/avifile-0.51/lib/videocodec'
> /bin/sh ../../libtool --silent --mode=compile c++ -DHAVE_CONFIG_H -I.
> -I. -I../../include   -O3 -mpentium -march=pentium -fno-exceptions -pipe
> -s -fomit-frame-pointer -fexpensive-optimizations -march=i586
> -I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT -w  -I../../include
> -c VideoEncoder.cpp
> In file included from ../../include/videodecoder.h:20,
>                  from Unc.h:6,
>                  from VideoEncoder.cpp:11:
> ../../include/image.h: In method `BitmapInfo::BitmapInfo (const 
> BITMAPINFOHEADER &)':
> ../../include/image.h:52: exception handling disabled, use -fexceptions 
> to enable
> VideoEncoder.cpp: In function `IVideoEncoder *IVideoEncoder::Create 
> (int, const BITMAPINFOHEADER &)':
> VideoEncoder.cpp:70: `e' undeclared (first use this function)
> VideoEncoder.cpp:70: (Each undeclared identifier is reported only once 
> for each function it appears in.)
> VideoEncoder.cpp:72: Internal error: Erreur de segmentation.
> 
> -- 
> Guillaume Rousse
> 
> Murphy's law : If anything can go wrong, it will.
> O'Tool's commentary : Murphy was an optimist.

-- 
Geoffrey Lee <[EMAIL PROTECTED]>
§õªø­·

http://www.mandrakesoft.com/~snailtalk
ftp://devel.mandrakesoft.com/pub/people/snailtalk

$/usr/games/fortune
Anything that can go wrong will go
Segmentation Fault (core dumped)
$

Reply via email to