ソースを参照

do not use -O3: gcc 3.2.1 hates this in combination with varargs

Ralf S. Engelschall 23 年 前
コミット
d32890f23a
2 ファイル変更6 行追加8 行削除
  1. 3 4
      pari/pari.spec
  2. 3 4
      python/python.spec

+ 3 - 4
pari/pari.spec

@@ -23,9 +23,7 @@
 ##  SUCH DAMAGE.
 ##
 
-# FIXME       ps     pari is not running with the last gcc(openpkg) version under 
-# FIXME       ps     freebsd 4.7 . 
-              
+#   package version
 %define       V_major 2.1
 %define       V_minor 4
 
@@ -39,7 +37,7 @@ Distribution: OpenPKG [PLUS]
 Group:        Algorithm
 License:      GPL
 Version:      %{V_major}.%{V_minor}
-Release:      20020821
+Release:      20030114
 
 #   list of sources
 Source0:      ftp://www.gn-50uma.de/gn/gn-50uma.de/pari-%{V_major}/pari-%{version}.tar.gz
@@ -62,6 +60,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %{l_shtool} subst -e 's;-O3;-O2;g' Configure
 
 %build
     CC="%{l_cc}" \

+ 3 - 4
python/python.spec

@@ -23,9 +23,6 @@
 ##  SUCH DAMAGE.
 ##
 
-#FIXME: ms Unreproducible building by hand. Can this be a new gcc limitation?
-#FIXME: thl dv1:/cw/bin/gcc 3.2.1-20021125 OK
-#FIXME: thl dv1:/cw/bin/gcc 3.2.1-20030109 FAILURE
 #   package information
 Name:         python
 Summary:      The Python Programming Language
@@ -36,7 +33,7 @@ Distribution: OpenPKG [BASE]
 Group:        Language
 License:      GPL
 Version:      2.2.2
-Release:      20021015
+Release:      20030114
 
 #   list of sources
 Source0:      ftp://ftp.python.org/pub/python/%{version}/Python-%{version}.tgz
@@ -61,11 +58,13 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n Python-%{version}
+    %{l_shtool} subst -e 's;-O3;-O2;g' configure
 
 %build
     CC="%{l_cc}" \
     CXX="%{l_cxx}" \
     CFLAGS="%{l_cflags -O}" \
+    CXXFLAGS="%{l_cxxflags -O}" \
     ./configure \
         --prefix=%{l_prefix}
     %{l_make} %{l_mflags -O}