Do not explicitly add "-fPIC" to the compiler command line.
authorOssama Othman <ossama.othman@intel.com>
Mon, 23 Feb 2015 18:45:26 +0000 (10:45 -0800)
committerSudarshan Prasad <sudarshan.prasad@intel.com>
Mon, 2 Mar 2015 03:51:45 +0000 (03:51 +0000)
commita8ae092a3b49e2e2c4fd9ad2bf306d5db817b662
treefd861c89cd0af6da6543d68aa19beeceada1e23b
parentdab37526d5810701c71cfd9e17ef439e547fe767
Do not explicitly add "-fPIC" to the compiler command line.

There is no need to explicitly add "-fPIC" to the compiler command
line since the SCons SharedLibary builder will automatically add it.
This change also addresses a problem where position independent code
was unnecessarily and incorrectly generated for static libraries.
IoTivity resource related static libraries are now smaller and code is
more efficient as result of removing "-fPIC" from static library
generation since the indirection that accompanies position independent
code no longer exists (for those static libraries).

Change-Id: I6cf57713d97b62f873ded4f4728fbb5e77e28ca6
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/399
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Caiwen Zhang <caiwen.zhang@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
resource/csdk/SConscript
resource/csdk/libcoap-4.1.1/SConscript
resource/oc_logger/SConscript
resource/src/SConscript