[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cc, /usr/local/include and /usr/local/lib



>                                            千葉市中央区長洲
>                                                    藤原  誠
Keiki> sparcがa.outなら、それが影響しているかも知れません。

不思議なことに、僕の観察では、次のようになっています。○とは
cc が「見る」という意味です。

                      /usr/local/lib, /usr/local/include
sparc  1.4.1 a.out    ×
sparc  1.4M  ELF      ○
macppc 1.5E  ELF      ×

何か自分で設定してしまっているのでしょうか ?
次のものだけは、いつも設定しています。
LD_LIBRARY_PATH=:/usr/X11R6/lib:/usr/local/lib:/usr/lib

Keiki> 両方でcc -v foo.c (foo.cはなんでもいいので存在するファイル)
Keiki> とやると何が表示されますか。

上のものを三つやって見ましたが、どうも差がないような気がします。



---
(藤原)
Using builtin specs.
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 /usr/libexec/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -D__sparc__ -D__sparc -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -D__sparc__ -D__sparc -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -Asystem(unix) -Asystem(NetBSD) -Acpu(sparc) -Amachine(sparc) array.c /tmp/cchr8trN.i
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (sparc-netbsdelf)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
End of search list.
 /usr/libexec/cc1 /tmp/cchr8trN.i -quiet -dumpbase array.c -version -o /tmp/ccnZDKc8.s
GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release) (sparc-netbsdelf) compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
 as -o /tmp/ccvXKzNJ.o /tmp/ccnZDKc8.s
 /usr/libexec/collect2 -m elf32_sparc -dc -dp -e __start -dynamic-linker /usr/libexec/ld.elf_so /usr/lib/crt0.o /usr/lib/crtbegin.o -L/usr/libexec /tmp/ccvXKzNJ.o -lgcc -lc -lgcc /usr/lib/crtend.o
Using builtin specs.
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 /usr/libexec/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -D__sparc__ -D__sparc -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -D__sparc__ -D__sparc -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -Asystem(unix) -Asystem(NetBSD) -Acpu(sparc) -Amachine(sparc) array.c /tmp/cclZSB4v.i
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (sparc-netbsdelf)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
End of search list.
 /usr/libexec/cc1 /tmp/cclZSB4v.i -quiet -dumpbase array.c -version -o /tmp/ccIINKO5.s
GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release) (sparc-netbsdelf) compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
 as -o /tmp/ccNyKkcY.o /tmp/ccIINKO5.s
 /usr/libexec/collect2 -m elf32_sparc -dc -dp -e __start -dynamic-linker /usr/libexec/ld.elf_so /usr/lib/crt0.o /usr/lib/crtbegin.o -L/usr/libexec /tmp/ccNyKkcY.o -lgcc -lc -lgcc /usr/lib/crtend.o
Using builtin specs.
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 /usr/libexec/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -D__powerpc__ -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -D__powerpc__ -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -Asystem(unix) -Asystem(NetBSD) -Acpu(powerpc) -Amachine(powerpc) -D__CHAR_UNSIGNED__ -D_CALL_SYSV array.c /tmp/ccczoJpT.i
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (PowerPC System V.4)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
End of search list.
 /usr/libexec/cc1 /tmp/ccczoJpT.i -mno-multiple -quiet -dumpbase array.c -version -o /tmp/ccSW1KmK.s
GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release) (rs6000-netbsd) compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
 as -u -mppc -V -Qy -o /tmp/cc3npzbL.o /tmp/ccSW1KmK.s
GNU assembler version 2.9.1 (powerpc--netbsd), using BFD version 2.9.1
 /usr/libexec/collect2 -O1 -dc -dp -e _start -dynamic-linker /usr/libexec/ld.elf_so /usr/lib/crt0.o /usr/lib/crtbegin.o -L/usr/libexec /tmp/cc3npzbL.o /usr/lib/libgcc.a -lc /usr/lib/libgcc.a /usr/lib/crtend.o