-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlinux.gypi
More file actions
28 lines (26 loc) · 783 Bytes
/
linux.gypi
File metadata and controls
28 lines (26 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
'cflags': [
#'-g',
'-O3', '-Wall', '-Wextra', '-lanl','-lrt',
# get rid of node-gyp noisey warnings:
'-Wno-unused', '-Wno-sign-compare','-Wno-maybe-uninitialized',
# "Turn the source fortification in glibc off - otherwise it would panic
# because of the stack pointer black magic in 'go' macro." -Martin Sustrik
'-U_FORTIFY_SOURCE',
'-D_FORTIFY_SOURCE=0',
'-DMILL_EXPORTS',
'-fvisibility=hidden',
'-std=gnu99',
'-D_GNU_SOURCE',
],
# compiler settings to build the nanomsg library
'defines': [
'MILL_EPOLL',
],
'direct_dependent_settings': {
# build nanomsg hub with same compiler flags as the library
'defines': [
'MILL_EPOLL',
],
}
}