From: David Given Date: Thu, 15 Dec 2016 23:34:57 +0000 (+0100) Subject: Ensure that cflags is honoured when linking cprograms. (Needed for -pg to X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b2eed994fd34014327a1234da59ad2dd44faf919;p=ack.git Ensure that cflags is honoured when linking cprograms. (Needed for -pg to work.) --- diff --git a/first/build.lua b/first/build.lua index 85df519a8..60d195410 100644 --- a/first/build.lua +++ b/first/build.lua @@ -220,7 +220,7 @@ definerule("cprogram", commands = { type="strings", default={ - "$(CC) -o %{outs[1]} -Wl,--start-group %{ins} -Wl,--end-group" + "$(CC) %{cflags} -o %{outs[1]} -Wl,--start-group %{ins} -Wl,--end-group" }, } },