Explorar el Código

seems to compile and run with latest gcc without optimizer

Michael van Elst hace 23 años
padre
commit
fc9923419c
Se han modificado 1 ficheros con 9 adiciones y 9 borrados
  1. 9 9
      xalan-c/xalan-c.spec

+ 9 - 9
xalan-c/xalan-c.spec

@@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL]
 Group:        Web
 License:      Apache Software License 1.1
 Version:      %{V_opkg}
-Release:      20030113
+Release:      20030123
 
 #   package options
 %option       with_threads  no
@@ -49,8 +49,8 @@ Patch0:       xalan-c.patch
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20030103, autoconf, libtool, gcc, make, xerces-c >= 2.1.0
-PreReq:       OpenPKG, openpkg >= 20030103, xerces-c >= 2.1.0
+BuildPreReq:  OpenPKG, openpkg >= 1.2.0, autoconf, libtool, gcc33 >= 3.3s20030120, make, xerces-c >= 2.1.0
+PreReq:       OpenPKG, openpkg >= 1.2.0, xerces-c >= 2.1.0
 %if "%{with_threads}" == "yes"
 BuildPreReq:  xerces-c::with_threads = yes
 PreReq:       xerces-c::with_threads = yes
@@ -128,10 +128,10 @@ AutoReqProv:  no
                         ;;
       esac ;
 %endif
-      CC="%{l_cc} $cf" \
-      CXX="%{l_cxx} $cf" \
-      CFLAGS="-O0 -g" \
-      CXXFLAGS="-O0 -g" \
+      CC="%{l_prefix}/bin/gcc33 $cf" \
+      CXX="%{l_prefix}/bin/g++33 $cf" \
+      CFLAGS="%{l_cflags -O}" \
+      CXXFLAGS="-O0" \
       LDFLAGS="%{l_ldflags} $lf" \
       ./configure \
         --prefix=%{l_prefix}
@@ -147,10 +147,10 @@ AutoReqProv:  no
         lib/libxalan-c.a $RPM_BUILD_ROOT%{l_prefix}/lib
     %{l_shtool} mkdir -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/share/xalan-c
     ( cd c
-      for f in `find samples xdocs -type d \( -name CVS -prune -o -print \)`; do
+      for f in `find xdocs -type d \( -name CVS -prune -o -print \)`; do
           %{l_shtool} mkdir -m 755 $RPM_BUILD_ROOT%{l_prefix}/share/xalan-c/$f
       done
-      for f in `find samples xdocs -type d -name CVS -prune -o -type f -print`; do
+      for f in `find xdocs -type d -name CVS -prune -o -type f -print`; do
           %{l_shtool} install -c -m 644 \
               $f $RPM_BUILD_ROOT%{l_prefix}/share/xalan-c/
       done