Creation Scons realized that my linker script had changed
I am using Scons to build my C project. I have an external linker file specified in ld
using a flag -Xlinker
. My problem is that whenever I change my linker script that it points to -Xlinker
, Scons ignores the changes:
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.
How do I get Scons to listen for changes in my linker script and recompile the project when that linker script changes?
+3
source to share
1 answer
env = Environment()
env['LINKFLAGS']+=' -T linkerscript.lds '
Depends(program, 'linkerscript.lds')
Also for explicit dependencies here check
+4
source to share