In einer Make-Datei gibt es eine Zeile:über CFLAGS in Makefile
CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1
&& echo -fno-stack-protector)
Was ist der Einsatz von shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1
? Es scheint nichts zu tun. Und wie funktioniert die ganze Linie? Vielen Dank im Voraus.
Hängt 'echo' diese Option an CFLAGS an? Warum gibt es kein Echo für die Ausgabe? – akirast
@akirast: weil '$ (shell)' Standardausgabe erfasst - siehe http://www.gnu.org/software/make/manual/make.html#Shell-Function – Christoph