fix rpm spec file for gcc 3.[23]

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4795 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-07-26 12:17:20 +00:00
parent 446f09c209
commit 532082c2c8
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-07-26 Kuba Ober <kuba@mareimbrium.org>
* lyx.spec.in: when compiling with gcc 3.[12], do not use
--with-included-string.
2002-07-09 Claus Hentschel <claus.hentschel@mbau.fh-hannover.de>
* Win32/lyxwin32.c: update to accept arguments

View File

@ -35,10 +35,12 @@ and let the computer take care of the rest.
%build
unset LINGUAS || true
ISTRING=--with-included-string
if gcc -v 2>&1 | grep -e "version 3.\(1\|2\)"; then ISTRING=; fi
CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=%{_prefix} --mandir=%{_mandir} \
--bindir=%{_bindir} --datadir=%{_datadir} \
--without-warnings --with-included-string
--without-warnings $ISTRING
make
%install