2
0
forked from pool/nodejs-common
Adam Majer 2021-05-31 16:43:15 +00:00 committed by Git OBS Bridge
parent 0e7fdd5c02
commit e11fd2e560

View File

@ -82,7 +82,8 @@ Conflicts: nodejs8 < 8.1.4
BuildRequires: gcc
%if %{with libalternatives}
BuildRequires: libalternatives-devel
%define libalternatives_flags -DHAVE_LIBALTERNATIVES_H -lalternatives
%define libalternatives_cflags -DHAVE_LIBALTERNATIVES_H
%define libalternatives_lflags -lalternatives
%endif
%description
@ -126,7 +127,7 @@ the current architecture and codestream.
%prep
%build
cp %{S:2} .
gcc ${RPM_OPT_FLAGS} %?libalternatives_flags -o node %{S:1}
gcc ${RPM_OPT_FLAGS} %?libalternatives_cflags -o node %{S:1} %?libalternatives_lflags
echo "Default Node version: " %{default_node_ver}