[M3devel] Linker override

Jay K jay.krell at cornell.edu
Sun May 20 03:31:16 CEST 2012


I don't know what is the ideal design here.

Of course you can easily skip the code on Windows:

if equal(OS_TYPE, "POSIX")
  SYSTEM_LD = "g++ -gstabs+ -m64 -fPIC -mno-align-double"
end

There is no gcc vs. g++ analog on Windows. Good.

I know we could hack and slash at it gradually:

m3makefile:
 USE_GPLUSPLUS = TRUE  ?
 USE_CPLUSPLUS_LINKER = TRUE ?
 USE_CPLUSPLUS = TRUE ?


and then check that wherever in the config files.


There is a need for some sort of modularity / additivity here.
But I don't know what the design and interface should look like.

Most likely this notion of "use cplusplus" needs to be unioned across all libraries being linked together.


 - Jay




----------------------------------------
> Date: Sun, 20 May 2012 10:48:08 +1000
> From: peter.mckinna at gmail.com
> To: m3devel at elegosoft.com
> Subject: [M3devel] Linker override
>
> Hi,
>
> I have had to override the default linker in my m3makefile to the
> C++ linker to link
> against a C++ library as in
>
> SYSTEM_LD = "g++ -gstabs+ -m64 -fPIC -mno-align-double"
>
> is there a more portable way to do this? I'm sure it wont work on windows!!
>
> Peter
 		 	   		  


More information about the M3devel mailing list