Revert back previous LINKFLAGS

This commit is contained in:
Ivan Kravets
2016-06-18 00:52:46 +03:00
parent 4035b9ac6c
commit 8d94a62b9c
4 changed files with 19 additions and 6 deletions

View File

@ -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"],

View File

@ -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=[

View File

@ -66,6 +66,11 @@ env.Append(
], ],
LIBS=["stdc++", "nosys"], LIBS=["stdc++", "nosys"],
LINKFLAGS=[
"-nostartfiles",
"-nostdlib"
]
) )
# #

View File

@ -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
# #