From 204040cfb83acbd913863c6a89a1982d229fb9080699a638227f9b93210f9c13 Mon Sep 17 00:00:00 2001 From: Kyrill Detinov Date: Fri, 18 Oct 2013 13:28:50 +0000 Subject: [PATCH] use optflags in cmake options OBS-URL: https://build.opensuse.org/package/show/M17N/uchardet?expand=0&rev=2 --- uchardet.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uchardet.spec b/uchardet.spec index 2b5d49d..5f2cc1e 100644 --- a/uchardet.spec +++ b/uchardet.spec @@ -74,10 +74,10 @@ This package contains the development files. %build mkdir build cd build -export CFLAGS="%{optflags}" -export CXXFLAGS="%{optflags}" cmake .. \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DCMAKE_C_FLAGS="%{optflags}" \ + -DCMAKE_CXX_FLAGS="%{optflags}" \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} make %{?_smp_mflags} VERBOSE=1