Configtool: use absolute paths for .al files.
In some cases the working directory gets changed unintentionally, so these .al files were no longer found. This should partially solve issue #132.
This commit is contained in:
parent
ae8a2a2b59
commit
e661170f75
|
|
@ -23,7 +23,7 @@ cflags = -DF_CPU=%F_CPU% -mmcu=%CPU% -Wall -Wstrict-prototypes -std=gnu99
|
|||
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
|
||||
-Winline -fno-move-loop-invariants -fno-tree-scev-cprop -Os
|
||||
-ffunction-sections -finline-functions-called-once -mcall-prologues
|
||||
-Wa,-adhlns=build/%ALNAME% -save-temps=obj
|
||||
-Wa,-adhlns=%ALNAME% -save-temps=obj
|
||||
|
||||
# Flags passed to avr-gcc to be passed on to the linker.
|
||||
ldflags = -Wl,--as-needed -Wl,--gc-sections
|
||||
|
|
|
|||
|
|
@ -183,10 +183,11 @@ class Build(wx.Dialog):
|
|||
ofile = basename + ".o"
|
||||
alfile = basename + ".al"
|
||||
opath = "\"" + join(self.root, "build", ofile) + "\""
|
||||
alpath = "\"" + join(self.root, "build", alfile) + "\""
|
||||
cpath = "\"" + join(self.root, f) + "\""
|
||||
|
||||
opts = self.settings.cflags
|
||||
opts = opts.replace("%ALNAME%", alfile)
|
||||
opts = opts.replace("%ALNAME%", alpath)
|
||||
opts = opts.replace("%F_CPU%", self.f_cpu)
|
||||
opts = opts.replace("%CPU%", self.cpu)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue