Author Topic: Problem with linker flag when using GNU configuration  (Read 4442 times)

shlomimor

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Problem with linker flag when using GNU configuration
« on: September 26, 2006, 07:04:02 AM »
Hi,

I am trying to use ARM toolchain using the GNU wizard, but I encountered the following problem:
SlickEdit pass the -Ox (code optimization flag) to the linker.

it is OK for gcc (since it behaves both as compiler and linker), but armlink doesn't recognize that flag.

I can remove it from the .prj file, but it apperas again once I change the -Ox flag for the compiler.

Thanks,
          Shlomi

Dennis

  • Senior Community Member
  • Posts: 3954
  • Hero Points: 515
Re: Problem with linker flag when using GNU configuration
« Reply #1 on: September 26, 2006, 02:07:55 PM »
Hmmm, you would like to have separate optmization flags for compiling and linking.  Currently we have no mechanism for doing that.  Here is a workaround:  write a shell script (gccarmlink.sh) that takes the -Ox flag out and then calls armlink, and set up your project to call the shell script instead of calling armlink directly.