mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 01:01:05 +01:00 
			
		
		
		
	atari: pass tos exe flags also to ld
This commit is contained in:
		
							parent
							
								
									113af73cb8
								
							
						
					
					
						commit
						0c43bb74a5
					
				@ -69,7 +69,7 @@ begin
 | 
			
		||||
   begin
 | 
			
		||||
    if not UseVLink then
 | 
			
		||||
     begin
 | 
			
		||||
      ExeCmd[1]:='ld $DYNLINK $OPT $STRIP $MAP -d -n -o $EXE -T $RES';
 | 
			
		||||
      ExeCmd[1]:='ld $DYNLINK $FLAGS $OPT $STRIP $MAP -d -n -o $EXE -T $RES';
 | 
			
		||||
     end
 | 
			
		||||
    else
 | 
			
		||||
     begin
 | 
			
		||||
@ -223,10 +223,16 @@ begin
 | 
			
		||||
  GCSectionsStr:='';
 | 
			
		||||
  DynLinkStr:='';
 | 
			
		||||
  MapStr:='';
 | 
			
		||||
  FlagsStr:='-tos-flags '+tostr(ataritos_exe_flags);
 | 
			
		||||
  if UseVLink then
 | 
			
		||||
    FlagsStr:='-tos-flags '+tostr(ataritos_exe_flags)
 | 
			
		||||
  else
 | 
			
		||||
    FlagsStr:='--mprg-flags '+tostr(ataritos_exe_flags);
 | 
			
		||||
 | 
			
		||||
  if (cs_link_map in current_settings.globalswitches) then
 | 
			
		||||
    MapStr:='-M'+maybequoted(ScriptFixFileName(current_module.mapfilename));
 | 
			
		||||
    if UseVLink then
 | 
			
		||||
      MapStr:='-M'+maybequoted(ScriptFixFileName(current_module.mapfilename))
 | 
			
		||||
    else
 | 
			
		||||
      MapStr:='-Map '+maybequoted(ScriptFixFileName(current_module.mapfilename));
 | 
			
		||||
  if (cs_link_strip in current_settings.globalswitches) then
 | 
			
		||||
    StripStr:='-s';
 | 
			
		||||
  if rlinkpath<>'' then
 | 
			
		||||
 | 
			
		||||
@ -55,7 +55,7 @@ const
 | 
			
		||||
    UnusedHandle    = $ffff;
 | 
			
		||||
    StdInputHandle  = 0;
 | 
			
		||||
    StdOutputHandle = 1;
 | 
			
		||||
    StdErrorHandle  = $ffff;
 | 
			
		||||
    StdErrorHandle  = 2;
 | 
			
		||||
 | 
			
		||||
var
 | 
			
		||||
    args: PChar;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user