use optflags in cmake options

OBS-URL: https://build.opensuse.org/package/show/M17N/uchardet?expand=0&rev=2
This commit is contained in:
Kyrill Detinov 2013-10-18 13:28:50 +00:00 committed by Git OBS Bridge
parent 16561e7a42
commit 204040cfb8

View File

@ -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