Cannot open linker script file when using custom flash size option

Hi,

I am trying to use 4m flash size but I get the following error:

c:/users/ricky/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/4.8.2/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: cannot open linker script file …/ld/eagle.app.v6.common.ld: No such file or directory
collect2.exe: error: ld returned 1 exit status
*** [.pioenvs\esp12e\firmware.elf] Error 1

My .ini file is:

[env:esp12e]
platform = espressif8266
board = esp12e
src_dir = src/config
src_dir = src/driver
src_dir = src/mqtt
framework = esp8266-nonos-sdk
upload_speed = 460800
build_flags = -Wp,-fno-threadsafe-statics
build_flags = -Wl,-TC:/Users/Ricky/.platformio/packages/framework-esp8266-nonos-sdk/ld/eagle.flash.4m1m.ld
upload_resetmethod = nodemcu

If i dont specify full path to the .ld file, it doesn’t find it.

Any help is greatly appreciated!!