mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 02:27:13 +02:00
Revert back previous LINKFLAGS
This commit is contained in:
@ -40,7 +40,8 @@ env.Replace(
|
|||||||
"-fdata-sections",
|
"-fdata-sections",
|
||||||
"-Wall",
|
"-Wall",
|
||||||
"-mthumb",
|
"-mthumb",
|
||||||
"-mcpu=${BOARD_OPTIONS['build']['cpu']}"
|
"-mcpu=${BOARD_OPTIONS['build']['cpu']}",
|
||||||
|
"-nostdlib"
|
||||||
],
|
],
|
||||||
|
|
||||||
CXXFLAGS=[
|
CXXFLAGS=[
|
||||||
@ -56,9 +57,7 @@ env.Replace(
|
|||||||
"-Os",
|
"-Os",
|
||||||
"-Wl,--gc-sections,--relax",
|
"-Wl,--gc-sections,--relax",
|
||||||
"-mthumb",
|
"-mthumb",
|
||||||
"-mcpu=${BOARD_OPTIONS['build']['cpu']}",
|
"-mcpu=${BOARD_OPTIONS['build']['cpu']}"
|
||||||
"-nostdlib",
|
|
||||||
"-nostartfiles"
|
|
||||||
],
|
],
|
||||||
|
|
||||||
LIBS=["c", "gcc", "m"],
|
LIBS=["c", "gcc", "m"],
|
||||||
|
@ -71,7 +71,8 @@ env.Replace(
|
|||||||
"-Wpointer-arith",
|
"-Wpointer-arith",
|
||||||
"-Wno-implicit-function-declaration",
|
"-Wno-implicit-function-declaration",
|
||||||
"-Wl,-EL",
|
"-Wl,-EL",
|
||||||
"-fno-inline-functions"
|
"-fno-inline-functions",
|
||||||
|
"-nostdlib"
|
||||||
],
|
],
|
||||||
|
|
||||||
CCFLAGS=[
|
CCFLAGS=[
|
||||||
@ -81,7 +82,8 @@ env.Replace(
|
|||||||
"-falign-functions=4",
|
"-falign-functions=4",
|
||||||
"-U__STRICT_ANSI__",
|
"-U__STRICT_ANSI__",
|
||||||
"-ffunction-sections",
|
"-ffunction-sections",
|
||||||
"-fdata-sections"
|
"-fdata-sections",
|
||||||
|
"-MMD" # output dependancy info
|
||||||
],
|
],
|
||||||
|
|
||||||
CXXFLAGS=[
|
CXXFLAGS=[
|
||||||
|
@ -66,6 +66,11 @@ env.Append(
|
|||||||
],
|
],
|
||||||
|
|
||||||
LIBS=["stdc++", "nosys"],
|
LIBS=["stdc++", "nosys"],
|
||||||
|
|
||||||
|
LINKFLAGS=[
|
||||||
|
"-nostartfiles",
|
||||||
|
"-nostdlib"
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -31,6 +31,13 @@ env.Replace(
|
|||||||
UPLOADCMD='"$UPLOADER" $SOURCES'
|
UPLOADCMD='"$UPLOADER" $SOURCES'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
env.Append(
|
||||||
|
LINKFLAGS=[
|
||||||
|
"-nostartfiles",
|
||||||
|
"-nostdlib"
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Target: Build executable and linkable firmware
|
# Target: Build executable and linkable firmware
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user