]> git.pld-linux.org Git - packages/ocaml.git/blobdiff - ocaml.spec
- CFLAGS fixes (5 sed invokations replaced with patch)
[packages/ocaml.git] / ocaml.spec
index 1c34fc920c872885434b41544c37d42cc37e87a2..9a6e5449e1aeff5fd32108b6ce16aef0ae577fbf 100644 (file)
@@ -46,6 +46,7 @@ Patch2:               %{name}-objinfo.patch
 # needs update for ocaml 3.08
 #Patch3:               %{name}-unused-var-warning.patch
 Patch4:                %{name}-tk85support.patch
+Patch5:                %{name}-CFLAGS.patch
 URL:           http://caml.inria.fr/
 %{?with_x:BuildRequires:       XFree86-devel}
 %{?with_db3:BuildRequires:     db3-devel}
@@ -326,14 +327,7 @@ cp %{SOURCE6} docs/camlp4-tutorial.ps.gz
 %patch2 -p1
 #%patch3 -p1
 %patch4 -p1
-
-# allow pass CFLAGS, replace -O, -pg,-DPROFILING with $(CFAGS)
-Makefiles=$(find . -type f -name Makefile\*)
-%{__sed} -i -e 's@^CFLAGS[ \t]*=@override CFLAGS += @' $Makefiles
-%{__sed} -i -e 's@\(^override CFLAGS += .*\)-O \(.*\)@\1\2@' $Makefiles
-%{__sed} -i -e 's@^CCFLAGS[ \t]*=\(.*\)@override CCFLAGS += \1 $(CFLAGS)@' $Makefiles
-%{__sed} -i -e 's@-pg -O -DPROFILING@ $(CFLAGS) @' asmrun/Makefile
-%{__sed} -i -e 's@-O@$(CFLAGS)@' otherlibs/systhreads/Makefile
+%patch5 -p1
 
 %build 
 cp -f /usr/share/automake/config.sub config/gnu
@@ -347,8 +341,8 @@ cp -f /usr/share/automake/config.sub config/gnu
        -with-pthread \
        -x11lib /usr/X11R6/%{_lib}
 
-%{__make} world bootstrap opt.opt CFLAGS="%{rpmcflags} -Wall"
-%{__make} -C tools objinfo CFLAGS="%{rpmcflags} -Wall"
+%{__make} -j1 world bootstrap opt.opt CFLAGS="%{rpmcflags} -Wall"
+%{__make} -C tools objinfo CFLAGS="%{rpmcflags} -Wall" -j1
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.042431 seconds and 4 git commands to generate.