
#  clang v12 or later produces broken binaries with -fstack-protector-strong
#
#  How to reproduce:
#  	install llvm12:	pkg install llvm12
#
#  	run make. The binary "echo.bad" will crash with segfault when executed
#


CC_?=clang12

all:
	$(CC_) -O2 -g -fstack-protector  echo.c -o echo.good
	$(CC_) -O2 -g -fstack-protector-strong echo.c -o echo.bad
clean:
	rm echo.good echo.bad


