コンパイルの問題をデバッグしようとしていますが、GCC (または make でしょうか??) で実際に実行されているコンパイラとリンカーのコマンドを表示できないようです。
表示される出力は次のとおりです。
CCLD libvirt_parthelper
libvirt_parthelper-parthelper.o: In function `main':
/root/qemu-build/libvirt-0.9.0/src/storage/parthelper.c:102: undefined reference to `ped_device_get'
/root/qemu-build/libvirt-0.9.0/src/storage/parthelper.c:116: undefined reference to `ped_disk_new'
/root/qemu-build/libvirt-0.9.0/src/storage/parthelper.c:122: undefined reference to `ped_disk_next_partition'
/root/qemu-build/libvirt-0.9.0/src/storage/parthelper.c:172: undefined reference to `ped_disk_next_partition'
/root/qemu-build/libvirt-0.9.0/src/storage/parthelper.c:172: undefined reference to `ped_disk_next_partition'
collect2: ld returned 1 exit status
make[3]: *** [libvirt_parthelper] Error 1
私が見たいのは次のようなものです:
$ make
gcc -Wall -c -o main.o main.c
gcc -Wall -c -o hello_fn.o hello_fn.c
gcc main.o hello_fn.o -o main
この例では、完全なgcc
コマンドが表示されていることに注意してください。上記の例では、「CCLD libvirt_parthelper」のようなものが表示されています。この動作を制御する方法がわかりません。
ベストアンサー1
ドライランを呼び出すには:
make -n
これにより、何make
をしようとしているのかが表示されます。