Configure: let INCLUDEs set on binaries "trickle down" to the objects
authorRichard Levitte <levitte@openssl.org>
Tue, 23 Jan 2018 18:07:14 +0000 (19:07 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 24 Jan 2018 14:56:57 +0000 (15:56 +0100)
commit6a8dfb90b54ad1d3d87510b37e409bf568a4338f
tree24ddb3c9b71b0cd06e05737fad0d6fd66b46142c
parent38454902208c358ffaa140aef3077c2316f82b19
Configure: let INCLUDEs set on binaries "trickle down" to the objects

This ensures that only one set of includes is associated with each
object file, reagardless of where it's used.

For example, if apps/build.info has this:

    SOURCE[openssl]=foo.c
    INCLUDE[openssl]=.. ../include

and test/build.info has this:

    SOURCE[footest]=../apps/foo.c
    INCLUDE[footest]=../include

The inclusion directories used for apps/foo.o would differ depending
on which program's dependencies get generated first in the build file.

With this change, all those INCLUDEs get combined into one set of
inclusion directories tied to the object file.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5153)

(cherry picked from commit 1b5ad51fc9b29d8893d5224f00bb3360f8aca465)
Configurations/common.tmpl
Configure