Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to modify common.mk or Makefile to obtain .map file?: (2 Items)
   
How to modify common.mk or Makefile to obtain .map file?  
I am doing some changes is code from QSSL.  The downloaded package is built with use of common.mk and Makefiles.

Is there any easy way to modify some of these files, or to export something before issuing make command to get a map 
file? (-M option to linker)

I have searched web and foundry, but the only thing I have found is:
LDPOST_nto_x86_gcc+=-M

But it's not working for me this way.

Regards, PKY
Re: How to modify common.mk or Makefile to obtain .map file?  
Hi, Pavol,

If you don't need to implement the -M flag only on x86 targets and gcc
compiler, you can just do:

  LDFLAGS+=-M

or

  LDOPTS+=-M

in the common.mk.  The selection of the compiler in the construction of
LDPOST also includes the compiler driver, usually QCC.  So if your
makefiles are using QCC (the default), then your original attempt should
be rephrased as:

  LDPOST_nto_x86_gcc_qcc+=-M

HTH,

Christian


On Tue, 2009-12-22 at 09:41 -0500, Pavol Kycina wrote:

> I am doing some changes is code from QSSL.  The downloaded package is built with use of common.mk and Makefiles.
> 
> Is there any easy way to modify some of these files, or to export something before issuing make command to get a map 
file? (-M option to linker)
> 
> I have searched web and foundry, but the only thing I have found is:
> LDPOST_nto_x86_gcc+=-M
> 
> But it's not working for me this way.
> 
> Regards, PKY
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post44283
> 


________________________________________________________________________

Christian W. Damus
Software Developer, IDE Team
QNX Software Systems