Linux: Don't add version script in Debug build (issue #1765)

This commit is contained in:
Marshall Greenblatt 2016-06-14 13:46:49 -04:00
parent 18d882b5d2
commit 80f5a35668
1 changed files with 10 additions and 5 deletions

15
cef.gyp
View File

@ -2094,12 +2094,17 @@
},
},
}],
[ '(OS=="linux" or OS=="freebsd" or OS=="openbsd") and asan==0', {
[ '(OS=="linux" or OS=="freebsd" or OS=="openbsd") and asan==0 and use_allocator=="none"', {
'link_settings': {
'ldflags': [
# Only export necessary symbols from libcef.so.
'-Wl,--version-script=<!(cd <(DEPTH) && pwd -P)/cef/libcef_dll/libcef.lst',
],
'configurations': {
'Release': {
'ldflags': [
# Only export necessary symbols from libcef.so.
# Don't do this in Debug builds because it causes the resulting application to crash.
'-Wl,--version-script=<!(cd <(DEPTH) && pwd -P)/cef/libcef_dll/libcef.lst',
],
},
},
},
}],
],