Files
linux/Documentation
Antony Pavlov 5b83df2b46 kbuild: fix ld-option function
The kbuild's ld-option function is broken because
the command
  $(CC) /dev/null -c -o "$$TMPO"
does not create object file!

I have used a relatively old mips gcc 3.4.6 cross-compiler
and a relatively new gcc 4.7.2 to check this fact
but the results are the same.

EXAMPLE:
  $ rm /tmp/1.o
  $ mips-linux-gcc /dev/null -c -o /tmp/1.o
  mips-linux-gcc: /dev/null: linker input file unused because linking not done
  $ ls -la /tmp/1.o
  ls: cannot access /tmp/1.o: No such file or directory

We can easily fix the problem by adding
the '-x c' compiler option.

EXAMPLE:
  $ rm /tmp/1.o
  $ mips-linux-gcc -x c /dev/null -c -o /tmp/1.o
  $ ls -la /tmp/1.o
  -rw-r--r-- 1 antony antony 778 Apr  2 20:40 /tmp/1.o

Also fix wrong ld-option example.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
2013-04-08 11:47:41 +02:00
..
2011-09-27 18:08:04 +02:00
2012-04-03 13:09:18 +02:00
2012-10-08 13:50:12 +10:30
2011-09-27 18:08:04 +02:00
2012-12-14 08:48:59 +01:00
2013-04-08 11:47:41 +02:00
2012-07-18 18:35:57 -07:00
2013-03-02 20:09:50 +00:00
2011-03-31 11:26:23 -03:00
2013-01-10 01:27:46 +01:00
2011-11-02 16:07:02 -07:00
2011-09-27 18:08:04 +02:00
2012-11-11 18:10:46 -08:00
2013-02-23 17:50:23 -08:00
2012-12-18 21:10:22 -08:00
2012-03-16 20:35:01 +00:00
2011-03-31 11:26:23 -03:00
2012-07-29 21:11:05 -03:00
2012-12-10 15:54:27 +01:00
2012-12-05 23:52:10 +00:00
2011-03-31 11:26:23 -03:00
2011-09-27 18:08:04 +02:00
2013-02-19 08:42:37 +01:00
2012-02-28 16:05:06 +01:00
2013-03-08 15:05:34 -08:00
2011-09-27 18:08:04 +02:00
2011-03-31 11:26:23 -03:00
2013-03-08 15:05:34 -08:00
2012-01-02 13:04:55 +01:00