Project

General

Profile

Actions

Bug #14222

open

LINK should not need CPPFLAGS

Added by Toomas Soome 27 days ago. Updated 27 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Got warning with clang:

clang-13: warning: argument unused during compilation: '-nostdinc' [-Wunused-command-line-argument]

Investigating the issue, I found this error is actually from rule to link:

$(PROG): $(OBJS)
    $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
    $(POST_PROCESS)

And LINK.c is defined to include $(CPPFLAGS), the gcc does not mind, but clang does (and rightfully so, I think). Move CPPFLAGS out from LINK.* macros.

Testing done: full nightly run.

Actions #1

Updated by Electric Monk 27 days ago

  • Gerrit CR set to 1788
Actions

Also available in: Atom PDF