correctly pass the opt flags
authorcoolo <coolo@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Wed, 12 Dec 2007 07:59:33 +0000 (07:59 +0000)
committercoolo <coolo@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Wed, 12 Dec 2007 07:59:33 +0000 (07:59 +0000)
git-svn-id: http://svn.opensuse.org/svn/yast/trunk/qt4@43007 e0cc52ee-31ee-0310-8b87-e83c4596d67c

yast2-qt4.spec.in

index e169cd2..a88ff25 100644 (file)
@@ -25,10 +25,10 @@ Obsoletes:  y2qt
 %build
 mkdir build
 cd build
+export CFLAGS="$RPM_OPT_FLAGS"
+export CXXFLAGS="$CFLAGS"
 cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
       -DLIB=%{_lib} \
-      -DCMAKE_C_FLAGS="%{optflags}" \
-      -DCMAKE_CXX_FLAGS="%{optflags}" \
       -DCMAKE_BUILD_TYPE=Release \
       -DCMAKE_SKIP_RPATH=1 \
       ..