/tmp folder and gcc

vah picture vah · Feb 2, 2011 · Viewed 8.6k times · Source

I am using the maemo Operating System and the GCC compiler. I have an error when I compile an application: there is no enough space on /tmp. I have 10% of my space free so I don't understand why this happens.. anyway, is it possible to change the GCC configuration in order to use another folder (in another partition)?

Answer

F'x picture F'x · Feb 2, 2011

Set your TMPDIR environment variable to where you want GCC to put your temporary files. Or, use the -pipe flag to keep temporary files (except object files) in memory.