build: make build fail if unresolved symbols found
authorHauke Mehrtens <hauke.mehrtens@lantiq.com>
Tue, 21 Jul 2015 20:00:18 +0000 (22:00 +0200)
committerUze Choi <uzchoi@samsung.com>
Fri, 24 Jul 2015 04:18:06 +0000 (04:18 +0000)
commit2533c88e18de689dbb26cfd4d585b1a991533c76
tree14f536e9829c40c94c8294ac78cb6ef52e90a39f
parent4f601653918586f46a34cc4d77f79474d1a15fc9
build: make build fail if unresolved symbols found

gcc links shared libs also when there are still some unresolved
symbols, you have to specify it explicitly to make it fail in such
cases. I think a compiler should fail in such cases otherwise
someone will add some not intended dependencies or some existing
dependencies are not getting declared.

This patch makes gcc fail in such cases. I have only activated this for
libs build in a Linux build and explicitly deactivates it for windows
(does this even work at all?) This should be build tested with Android
also.

This was build tested for Linux and Android.

This patch depends on some other patches I send which are fixing the
problems I found with this change.

Change-Id: I9ab79896ca2e86e9226cd9b39060a0763ef89694
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1802
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
17 files changed:
extlibs/expat/SConscript
resource/csdk/connectivity/samples/android/SConscript
resource/csdk/connectivity/src/SConscript
resource/oc_logger/SConscript
resource/src/SConscript
service/notification-manager/SConscript
service/protocol-plugin/plugin-manager/SConscript
service/protocol-plugin/plugin-manager/src/Android/jni/SConscript
service/protocol-plugin/plugins/SConscript
service/protocol-plugin/plugins/mqtt-fan/lib/cpp/SConscript
service/resource-manipulation/src/common/SConscript
service/resource-manipulation/src/resourceContainer/SConscript
service/resource-manipulation/src/resourceContainer/unittests/SConscript
service/resource-manipulation/src/serverBuilder/SConscript
service/soft-sensor-manager/SConscript
service/things-manager/SConscript
service/things-manager/sdk/java/jni/SConscript