On Fri, Jul 04, 2003, Michael Schloh wrote: > Log: > Fix build by removing vendor-specific hardcoded compiler options > > patch -p0 <<'@@ .' > Index: openpkg-src/xaw3d/xaw3d.spec > ============================================================================ > $ cvs diff -u -r1.16 -r1.17 xaw3d.spec > --- openpkg-src/xaw3d/xaw3d.spec 8 Apr 2003 12:56:26 -0000 1.16 > +++ openpkg-src/xaw3d/xaw3d.spec 4 Jul 2003 10:53:03 -0000 1.17 > @@ -42,7 +42,7 @@ > Group: XWindow > License: GPL > Version: 1.5 > -Release: 20030408 > +Release: 20030704 > > # list of sources > Source0: ftp://ftp.x.org/contrib/widgets/Xaw3d/R6.3/Xaw3d-%{version}.tar.gz > @@ -79,6 +79,12 @@ > %{l_make} %{l_mflags -O} Makefiles > %{l_shtool} subst \ > -e 's; -M mapfile;;g' \ > + -e 's;\(PICFLAGS =.*\) -Kpic\(.*\)$;\1\2;g' \ > + -e 's;\(CCOPTIONS =.*\) -Xc\(.*\)$;\1\2;g' \ > + -e 's;\(CCOPTIONS =.*\) -x.*\(.*\)$;\1\2;g' \ > + -e 's;\(CCOPTIONS =.*\) -x.*\(.*\)$;\1\2;g' \ > + -e 's;\(CCOPTIONS =.*\) -x.*\(.*\)$;\1\2;g' \ > + -e 's;\(CCOPTIONS =.*\) -x.*\(.*\)$;\1\2;g' \ > Makefile If there is a better way here, please advise me on how to do this iteratively (using less lines of substitutions).
Regards, Michael
pgp00000.pgp
Description: PGP signature
