forked from platformio/platformio-core
Use Linker cyclic option when deplibs exist
This commit is contained in:
@ -43,12 +43,13 @@ def BuildFirmware(env):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# enable "cyclic reference" for linker
|
# enable "cyclic reference" for linker
|
||||||
env.Prepend(
|
if deplibs:
|
||||||
_LIBFLAGS="-Wl,--start-group "
|
env.Prepend(
|
||||||
)
|
_LIBFLAGS="-Wl,--start-group "
|
||||||
env.Append(
|
)
|
||||||
_LIBFLAGS=" -Wl,--end-group"
|
env.Append(
|
||||||
)
|
_LIBFLAGS=" -Wl,--end-group"
|
||||||
|
)
|
||||||
|
|
||||||
# Handle SRC_BUILD_FLAGS
|
# Handle SRC_BUILD_FLAGS
|
||||||
if getenv("PLATFORMIO_SRC_BUILD_FLAGS", None):
|
if getenv("PLATFORMIO_SRC_BUILD_FLAGS", None):
|
||||||
|
Reference in New Issue
Block a user