diff --git a/libgit2/libgit2.spec b/libgit2/libgit2.spec index 4198fa85e7..c5de12df82 100644 --- a/libgit2/libgit2.spec +++ b/libgit2/libgit2.spec @@ -32,7 +32,7 @@ Class: EVAL Group: SCM License: LGPL Version: 1.0.0 -Release: 20200401 +Release: 20200424 # list of sources Source0: https://github.com/libgit2/libgit2/archive/v%{version}.tar.gz @@ -62,6 +62,8 @@ PreReq: OpenPKG, openpkg >= 20160101 cd build cmake \ -DCMAKE_C_COMPILER=%{l_cc} \ + -DCMAKE_C_FLAGS="%{l_cflags} %{l_cppflags}" \ + -DCMAKE_EXE_LINKER_FLAGS="%{l_ldflags}" \ -DCMAKE_INSTALL_PREFIX=%{l_prefix} \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=OFF \