Skip to content

Commit db986e0

Browse files
committed
add fortify flags cpp for alpine.
1 parent 4b1c3a3 commit db986e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

binding.gyp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@
159159
},
160160
"defines": ["LINUX_BUILD", "UNICODE"],
161161
"cflags_cc": ["<(cflags_cpp)"],
162+
"cflags": ["-U_FORTIFY_SOURCE", "-fno-lto"],
163+
"ldflags": ["-fno-lto"],
162164
"include_dirs": [
163165
"<!@(node -p \"'<(msodbc_include_folders)'.split(' ').join(' ')\")",
164166
"/usr/include/",

0 commit comments

Comments
 (0)