[Lazarus] make clean is leaving more than 20MB stuff behind (this number is after compression!)

Bernd prof7bit at gmail.com
Tue Oct 9 01:47:49 CEST 2012


2012/10/8 Sven Barth <pascaldragon at googlemail.com>:

> You just need to test yourself: create a unit with a bit of code and compile
> using "-CX". At least on my system I haven't found a "libUNITNAME.a" file.

--(bernd at t40)-(/home/bernd/Desktop/smartlinktest)--
--($)-- ls
insgesamt 20
drwxr-xr-x  2 bernd bernd 4096 Okt  9 01:44 .
drwx------ 12 bernd bernd 4096 Okt  9 01:37 ..
-rw-r--r--  1 bernd bernd   48 Okt  9 01:39 prog.pas
-rw-r--r--  1 bernd bernd   51 Okt  9 01:41 unita.pas
-rw-r--r--  1 bernd bernd   51 Okt  9 01:41 unitb.pas

--(bernd at t40)-(/home/bernd/Desktop/smartlinktest)--

--($)-- cat prog.pas
program prog;

uses
	unita,
	unitb;

begin
end.

--(bernd at t40)-(/home/bernd/Desktop/smartlinktest)--
--($)-- cat unita.pas
unit unita;

interface

implementation

begin
end.

--(bernd at t40)-(/home/bernd/Desktop/smartlinktest)--
--($)-- cat unitb.pas
unit unitb;

interface

implementation

begin
end.

--(bernd at t40)-(/home/bernd/Desktop/smartlinktest)--
--($)-- fpc -CX -XX prog.pas
Free Pascal Compiler version 2.6.0 [2012/10/07] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling prog.pas
Compiling unita.pas
Compiling unitb.pas
Linking prog
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
24 lines compiled, 1.5 sec

--(bernd at t40)-(/home/bernd/Desktop/smartlinktest)--
--($)-- ls
insgesamt 104
drwxr-xr-x  2 bernd bernd  4096 Okt  9 01:46 .
drwx------ 12 bernd bernd  4096 Okt  9 01:37 ..
-rw-r--r--  1 bernd bernd 16026 Okt  9 01:46 libpprog.a
-rw-r--r--  1 bernd bernd  8988 Okt  9 01:46 libpunita.a
-rw-r--r--  1 bernd bernd  8988 Okt  9 01:46 libpunitb.a
-rwxr-xr-x  1 bernd bernd 21980 Okt  9 01:46 prog
-rw-r--r--  1 bernd bernd  1696 Okt  9 01:46 prog.o
-rw-r--r--  1 bernd bernd    48 Okt  9 01:39 prog.pas
-rw-r--r--  1 bernd bernd   791 Okt  9 01:46 unita.o
-rw-r--r--  1 bernd bernd    51 Okt  9 01:41 unita.pas
-rw-r--r--  1 bernd bernd   624 Okt  9 01:46 unita.ppu
-rw-r--r--  1 bernd bernd   791 Okt  9 01:46 unitb.o
-rw-r--r--  1 bernd bernd    51 Okt  9 01:41 unitb.pas
-rw-r--r--  1 bernd bernd   624 Okt  9 01:46 unitb.ppu




More information about the Lazarus mailing list