Bug 1346602 - Turn -z defs into warnings on BSDs after 1330655. r=ttaubert
--- a/coreconf/config.gypi
+++ b/coreconf/config.gypi
@@ -214,26 +214,28 @@
# Shared library specific settings.
[ '_type=="shared_library"', {
'conditions': [
[ 'cc_use_gnu_ld==1', {
'ldflags': [
'-Wl,--gc-sections',
],
'conditions': [
- ['OS=="dragonfly" or OS=="freebsd" or OS=="netbsd" or OS=="openbsd"', {
- # Bug 1321317 - unix_rand.c:880: undefined reference to `environ'
- 'ldflags': [
- '-Wl,--warn-unresolved-symbols',
- ],
- }],
['no_zdefs==0', {
'ldflags': [
'-Wl,-z,defs',
],
+ 'conditions': [
+ ['OS=="dragonfly" or OS=="freebsd" or OS=="netbsd" or OS=="openbsd"', {
+ # Bug 1321317 - unix_rand.c:880: undefined reference to `environ'
+ 'ldflags': [
+ '-Wl,--warn-unresolved-symbols',
+ ],
+ }],
+ ],
}],
],
}],
],
'xcode_settings': {
'DYLIB_INSTALL_NAME_BASE': '@executable_path',
'DYLIB_COMPATIBILITY_VERSION': '1',
'DYLIB_CURRENT_VERSION': '1',