From e11fd2e560bc524e93fed269eed290e2b9a7e0ed5637c1ce16b7c68e0a89412f Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Mon, 31 May 2021 16:43:15 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-common?expand=0&rev=42 --- nodejs-common.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}