【问题标题】:Under what conditions does GNU Make change the stack size, and why?GNU Make 在什么条件下改变堆栈大小,为什么?
【发布时间】:2016-10-19 18:28:25
【问题描述】:

考虑这个makefile:

.PHONY: all

all: dummy test
    ulimit -s

include dummy

dummy: test
    touch dummy

当我运行它时,我得到:

$ make -v
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ touch test; make
touch dummy
ulimit -s
unlimited

但是,如果我删除include dummy 或将touch dummy 替换为true,那么ulimit -s 将提供8192。怎么回事?

【问题讨论】:

    标签: makefile gnu-make ulimit


    【解决方案1】:

    这是bug 48009,已在 GNU make 4.2.1 中修复。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-07-21
      • 2011-12-10
      • 2021-01-08
      • 2011-10-02
      • 2015-06-30
      • 2014-04-03
      • 1970-01-01
      相关资源
      最近更新 更多