]> git.ipfire.org Git - thirdparty/openssl.git/commit - Configure
Configure: Name object files according to the product they are part of
authorRichard Levitte <levitte@openssl.org>
Mon, 10 Sep 2018 00:21:40 +0000 (02:21 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 11 Sep 2018 23:59:45 +0000 (01:59 +0200)
commitbec2db1809df52f6e6548e7e883cdc7fec79964a
tree95d85b5ff53c06be60e16f77170e1692170bdfa3
parent609e4be88e63e489c32438b3b0872fd891829301
Configure: Name object files according to the product they are part of

This will allow to have different object files for different products,
even if they share the same source code, and possibly different builds
for those different object files.

For example, one can have something like this:

    SOURCES[libfoo]=cookie.c
    INCLUDES[libfoo]=include/foo
    SOURCES[libbar]=cookie.c
    INCLUDES[libbar]=include/bar

This would mean that the object files and libraries would be build
somewhat like this:

    $(CC) -Iinclude/foo -o libfoo-lib-cookie.o cookie.c
    $(AR) $(ARFLAGS) libfoo.a libfoo-lib-cookie.o
    $(CC) -Iinclude/bar -o libbar-lib-cookie.o cookie.c
    $(AR) $(ARFLAGS) libbar.a libbar-lib-cookie.o

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7159)
CHANGES
Configurations/common.tmpl
Configure