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",
"-Wall",
"-mthumb",
"-mcpu=${BOARD_OPTIONS['build']['cpu']}"
"-mcpu=${BOARD_OPTIONS['build']['cpu']}",
"-nostdlib"
],
CXXFLAGS=[
@ -56,9 +57,7 @@ env.Replace(
"-Os",
"-Wl,--gc-sections,--relax",
"-mthumb",
"-mcpu=${BOARD_OPTIONS['build']['cpu']}",
"-nostdlib",
"-nostartfiles"
"-mcpu=${BOARD_OPTIONS['build']['cpu']}"
],
LIBS=["c", "gcc", "m"],

View File

@ -71,7 +71,8 @@ env.Replace(
"-Wpointer-arith",
"-Wno-implicit-function-declaration",
"-Wl,-EL",
"-fno-inline-functions"
"-fno-inline-functions",
"-nostdlib"
],
CCFLAGS=[
@ -81,7 +82,8 @@ env.Replace(
"-falign-functions=4",
"-U__STRICT_ANSI__",
"-ffunction-sections",
"-fdata-sections"
"-fdata-sections",
"-MMD" # output dependancy info
],
CXXFLAGS=[

View File

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

View File

@ -31,6 +31,13 @@ env.Replace(
UPLOADCMD='"$UPLOADER" $SOURCES'
)
env.Append(
LINKFLAGS=[
"-nostartfiles",
"-nostdlib"
]
)
#
# Target: Build executable and linkable firmware
#