Add -Wl,-z,-defs to ldflags on Linux & Android (#2917)
Add -Wl,-z,-defs to ldflags on Linux & Android (#2917)

This ensures there are no undefined symbols at link time. After this PR,
problems like #2916 will be caught at compile time.
project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip