use optflags in cmake options
OBS-URL: https://build.opensuse.org/package/show/M17N/uchardet?expand=0&rev=2
This commit is contained in:
parent
16561e7a42
commit
204040cfb8
@ -74,10 +74,10 @@ This package contains the development files.
|
|||||||
%build
|
%build
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
export CFLAGS="%{optflags}"
|
|
||||||
export CXXFLAGS="%{optflags}"
|
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||||
|
-DCMAKE_C_FLAGS="%{optflags}" \
|
||||||
|
-DCMAKE_CXX_FLAGS="%{optflags}" \
|
||||||
-DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
-DCMAKE_INSTALL_LIBDIR=%{_libdir}
|
||||||
make %{?_smp_mflags} VERBOSE=1
|
make %{?_smp_mflags} VERBOSE=1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user