Ralf S. Engelschall il y a 23 ans
Parent
commit
7cd9024a83
1 fichiers modifiés avec 8 ajouts et 7 suppressions
  1. 8 7
      mico/mico.spec

+ 8 - 7
mico/mico.spec

@@ -72,15 +72,16 @@ AutoReqProv:  no
     %patch -p1
 
 %build
-    CC="%{l_cc}" \
-    CXX="%{l_cxx}" \
-    CFLAGS="%{l_cflags -O}" \
-    CXXFLAGS="%{l_cxxflags -O} -Wno-deprecated" \
+    CC="%{l_cc}"
+    CXX="%{l_cxx}"
+    CFLAGS="%{l_cflags -O}"
+    CXXFLAGS="%{l_cxxflags -O} -Wno-deprecated"
 %if "%{with_qt}" == "yes"
-    CXXFLAGS+="-I%{l_prefix}/include/qt" \
+    CXXFLAGS="$CXXFLAGS -I%{l_prefix}/include/qt"
 %endif
-    CPPFLAGS="%{l_cppflags}" \
-    LDFLAGS="%{l_ldflags}" \
+    CPPFLAGS="%{l_cppflags}"
+    LDFLAGS="%{l_ldflags}"
+    export CC CXX CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
     ./configure \
         --prefix=%{l_prefix} \
 %if "%{with_ssl}" == "yes"