[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with implicit rule for .o files and overriding of CXXFLAGS.



Charles Plessy <plessy@debian.org> writes:

> while working on an update to the `proda' package, I realised that a
> compilation option, DVERSION="\"1.00\"", was discarded during the build
> of the Debian binary package. The reason is very simple:
>
> OTHERFLAGS = -DVERSION="\"1.00\""
> CXXFLAGS = -g -W -Wall -pedantic $(OTHERFLAGS)

Why can't you simply change = to +=, thereby appending these flags to
whatever is supplied by the user?


Reply to: