我在 binutils-2.29/binutils 目录中更改了 Makefile.am 以创建一个新库。所以我正在运行以下命令来创建一个新的 Makefile
dinesh@dinesh-HP-Ubuntu:/home/packages/binutils-2.29$ sudo libtoolize && aclocal -I./ && autoreconf && automake
它给了我以下错误:
dinesh@dinesh-HP-Ubuntu:/home/packages/binutils-2.29$ sudo libtoolize && aclocal -I./ && autoreconf && automake
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autom4te: cannot open autom4te.cache/requests: Permission denied
aclocal: error: echo failed with exit status: 1
但是父目录中没有 Makefile.am,子目录中有 Makefile.am。当我搜索 Makefile.am 我得到这个:
dinesh@dinesh-HP-Ubuntu:/home/packages/binutils-2.29$ find -iname "Makefile.am" | xargs grep -inr "ACLOCAL_AMFLAGS"
./gas/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
./gold/Makefile.am:26:ACLOCAL_AMFLAGS = -I ../bfd -I ../config
./opcodes/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
./binutils/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
./ld/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
./zlib/Makefile.am:5:ACLOCAL_AMFLAGS = -I .. -I ../config
./gprof/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
./bfd/Makefile.am:21:ACLOCAL_AMFLAGS = -I . -I .. -I ../config
我应该在哪个 Makefile.am 添加 -I m4 ?
同样在父目录中,还有具有不同扩展名的 Makefile
dinesh@dinesh-HP-Ubuntu:/home/packages/binutils-2.29$ ls Makefile.*
Makefile.def Makefile.in Makefile.tpl