gpt4 book ai didi

linux - automake 子目录对象被禁用

转载 作者:IT王子 更新时间:2023-10-29 00:14:10 26 4
gpt4 key购买 nike

我在使用 automake 时遇到以下错误。我知道您可以将 AUTOMAKE_OPTIONS = subdir-objects"放在 Makefile.am 的顶部。但是我如何为所有文件设置此行为,所以我不需要逐个进行?

Makefile.am:454: warning: source file 'libs/esl/src/esl_threadmutex.c' is in a subdirectory,
Makefile.am:454: but option 'subdir-objects' is disabled
Makefile.am:454: warning: source file 'libs/esl/ivrd.c' is in a subdirectory,
Makefile.am:454: but option 'subdir-objects' is disabled
Makefile.am:454: warning: source file 'libs/esl/src/esl_json.c' is in a subdirectory,
Makefile.am:454: but option 'subdir-objects' is disabled
Makefile.am:454: warning: source file 'libs/esl/src/esl_buffer.c' is in a subdirectory,
Makefile.am:454: but option 'subdir-objects' is disabled
tests/unit/unit.mk:6: warning: source file 'tests/unit/switch_event.c' is in a subdirectory,
tests/unit/unit.mk:6: but option 'subdir-objects' is disabled
Makefile.am:854: 'tests/unit/unit.mk' included from here
tests/unit/unit.mk:13: warning: source file 'tests/unit/switch_hash.c' is in a subdirectory,
tests/unit/unit.mk:13: but option 'subdir-objects' is disabled
Makefile.am:854: 'tests/unit/unit.mk' included from here
Makefile.am:441: warning: source file 'src/tone2wav.c' is in a subdirectory,
Makefile.am:441: but option 'subdir-objects' is disabled
Makefile.am: installing 'build/config/depcomp'

最佳答案

这不是您“逐案”添加的东西,因为 AUTOMAKE_OPTIONS 适用于整个项目。据推测,这也是将来应该使用的唯一方法,因此发出警告;现在它是选择加入的。

您也可以在 configure.ac 中使用 AM_INIT_AUTOMAKE 进行设置,参见 Autotools Mythbuster (全面披露:我是作者)您可以使用的全套 automake 选项。

关于linux - automake 子目录对象被禁用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38722465/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com