Browse Source

pass compiler flags

master
parent
commit
89c10f29c1
  1. 4
      libgit2/libgit2.spec

4
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 \

Loading…
Cancel
Save