fix: use system node headers (--nodedir=/usr) for offline build
This commit is contained in:
@@ -43,7 +43,7 @@ ln -srt node_modules/ node_modules_prod/*
|
|||||||
ln -srt node_modules/.bin/ node_modules_prod/.bin
|
ln -srt node_modules/.bin/ node_modules_prod/.bin
|
||||||
|
|
||||||
%build
|
%build
|
||||||
USE_SYSTEM_LDAP=1 npm rebuild
|
USE_SYSTEM_LDAP=1 npm rebuild --nodedir=/usr
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
||||||
|
|||||||
Reference in New Issue
Block a user