diff --git a/nodejs-common.spec b/nodejs-common.spec index 9b9f571..dc755a9 100644 --- a/nodejs-common.spec +++ b/nodejs-common.spec @@ -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}