- Patch makefiles so that our RPM_OPT_FLAGS get used instead of the custom

upstream CFLAGS.
This commit is contained in:
Hans de Goede 2006-08-02 05:39:04 +00:00
parent c7d963e485
commit 405eab765f

View File

@ -38,7 +38,11 @@ Libraries, include files, etc you can use to develop soundtouch applications.
sed -i 's/-rpath $(libdir)/-rpath $(libdir) -version-number %{ltversion}/' \
source/SoundTouch/Makefile.in
# force use of our CFLAGS
%ifarch %{ix86}
sed -i 's|-O3 -msse|$(CFLAGS) -msse|' source/SoundTouch/Makefile.*
%else
sed -i 's|-O3 -msse|$(CFLAGS)|' source/SoundTouch/Makefile.*
%endif
sed -i 's|-O3|$(CFLAGS)|' source/example/*/Makefile.*
# cleanup a bit
chmod -x README.html