0

Consider this makefile:

.PHONY: all

all: dummy test
    ulimit -s

include dummy

dummy: test
    touch dummy

When I run it, I get:

$ 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

However, if I remove the include dummy or replace touch dummy with true, then ulimit -s gives 8192. What's going on?

Jason Gross
  • 5,928
  • 1
  • 26
  • 53

1 Answers1

2

This is bug 48009 which was fixed in GNU make 4.2.1.

MadScientist
  • 92,819
  • 9
  • 109
  • 136