aports/main/nodejs/system-ada.patch
Jakub Jirutka 89572d2367 main/nodejs: build with system-provided ada library
The patch is copied from community/nodejs-current.
2023-11-19 23:39:49 +00:00

37 lines
930 B
Diff

diff --git a/deps/ada/ada.gyp b/deps/ada/ada.gyp
index 55cea003..b5a08656 100644
--- a/deps/ada/ada.gyp
+++ b/deps/ada/ada.gyp
@@ -6,12 +6,14 @@
'targets': [
{
'target_name': 'ada',
- 'type': 'static_library',
- 'include_dirs': ['.'],
+ 'type': 'shared_library',
+ 'include_dirs': ['/usr/include/ada'],
'direct_dependent_settings': {
- 'include_dirs': ['.'],
- },
- 'sources': [ '<@(ada_sources)' ]
+ 'include_dirs': ['/usr/include/ada'],
+ 'linkflags': ['-lada'],
+ 'ldflags': ['-lada'],
+ 'libraries': ['-lada']
+ }
},
]
}
diff --git a/node.gyp b/node.gyp
index f092c332..06fcd510 100644
--- a/node.gyp
+++ b/node.gyp
@@ -465,6 +465,7 @@
'dependencies': [
'deps/histogram/histogram.gyp:histogram',
'deps/uvwasi/uvwasi.gyp:uvwasi',
+ 'deps/ada/ada.gyp:ada',
],
'msvs_settings': {