Skip to content

Commit 12dbe25

Browse files
committed
fix: disable hack argv pointer for Tizen build
Signed-off-by: Daeyeon Jeong [email protected]
1 parent 41aad6b commit 12dbe25

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

deps/bindings/bindings.gyp

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
{
22
'variables': {
3-
'deps_path%': '..'
3+
'deps_path%': '..',
4+
'host_platform%': 'none',
5+
'platform_libs%': '',
6+
'conditions': [
7+
['host_platform=="tizen"', {
8+
'platform_libs': 'dlog'
9+
}],
10+
],
411
},
512
'targets': [
613
{
714
'target_name': 'glib',
815
'type': '<(library)',
916
'dependencies': [ '<(deps_path)/uv/uv.gyp:libuv' ],
1017
'cflags': [
11-
'<!@(pkg-config --cflags glib-2.0)',
18+
'<!@(pkg-config --cflags glib-2.0 <(platform_libs))',
1219
],
1320
'include_dirs': [
1421
'src',
@@ -21,10 +28,10 @@
2128
'ENABLE_NODE_BINDINGS'
2229
],
2330
'cflags': [
24-
'<!@(pkg-config --cflags glib-2.0)',
31+
'<!@(pkg-config --cflags glib-2.0 <(platform_libs))',
2532
],
2633
'libraries': [
27-
'<!@(pkg-config --libs glib-2.0)',
34+
'<!@(pkg-config --libs glib-2.0 <(platform_libs))',
2835
],
2936
'include_dirs': [
3037
'src',

src/node.cc

+2
Original file line numberDiff line numberDiff line change
@@ -4331,8 +4331,10 @@ int Start(int argc, char** argv) {
43314331

43324332
CHECK_GT(argc, 0);
43334333

4334+
#if !defined(HOST_TIZEN)
43344335
// Hack around with the argv pointer. Used for process.title = "blah".
43354336
argv = uv_setup_args(argc, argv);
4337+
#endif
43364338

43374339
// This needs to run *before* V8::Initialize(). The const_cast is not
43384340
// optional, in case you're wondering.

0 commit comments

Comments
 (0)