diff options
author | Richard Levitte <levitte@openssl.org> | 2016-09-08 19:23:38 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-09-09 00:12:54 +0200 |
commit | 1750142f43436c9e074352580f1b434fd3b87f3a (patch) | |
tree | 21e342b44c2f2abacfec59e6003d9f0c1d0849df /Configurations/descrip.mms.tmpl | |
parent | 84f3867536625253b48e270cc261f0559b8861a9 (diff) |
VMS: Use different C flags for programs that aren't to be installed
This is generalised by having the following macros for stuff that won't
be installed:
NO_INST_LIB_CFLAGS, used instead of LIB_CFLAGS
NO_INST_DSO_CFLAGS, used instead of DSO_CFLAGS
NO_INST_BIN_CFLAGS, used instead of BIN_CFLAGS
They take values from corresponding target config fields if those are
defined, otherwise they take the respective values from LIB_CFLAGS,
DSO_CFLAGS and BIN_CFLAGS.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Configurations/descrip.mms.tmpl')
-rw-r--r-- | Configurations/descrip.mms.tmpl | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Configurations/descrip.mms.tmpl b/Configurations/descrip.mms.tmpl index ce96778fe8..108ab5d32d 100644 --- a/Configurations/descrip.mms.tmpl +++ b/Configurations/descrip.mms.tmpl @@ -168,6 +168,9 @@ EX_LIBS= {- $target{ex_libs} ? ",".$target{ex_libs} : "" -}{- $config{ex_libs} ? LIB_CFLAGS={- $target{lib_cflags} || "" -} DSO_CFLAGS={- $target{dso_cflags} || "" -} BIN_CFLAGS={- $target{bin_cflags} || "" -} +NO_INST_LIB_CFLAGS={- $target{no_inst_lib_cflags} || '$(LIB_CFLAGS)' -} +NO_INST_DSO_CFLAGS={- $target{no_inst_dso_cflags} || '$(DSO_CFLAGS)' -} +NO_INST_BIN_CFLAGS={- $target{no_inst_bin_cflags} || '$(BIN_CFLAGS)' -} PERL={- $config{perl} -} @@ -567,9 +570,16 @@ EOF my $srcs = join(", ", map { abs2rel(rel2abs($_), rel2abs($forward)) } @{$args{srcs}}); - my $ecflags = { lib => '$(LIB_CFLAGS)', - dso => '$(DSO_CFLAGS)', - bin => '$(BIN_CFLAGS)' } -> {$args{intent}}; + my $ecflags; + if ($args{installed}) { + $ecflags = { lib => '$(LIB_CFLAGS)', + dso => '$(DSO_CFLAGS)', + bin => '$(BIN_CFLAGS)' } -> {$args{intent}}; + } else { + $ecflags = { lib => '$(NO_INST_LIB_CFLAGS)', + dso => '$(NO_INST_DSO_CFLAGS)', + bin => '$(NO_INST_BIN_CFLAGS)' } -> {$args{intent}}; + } my $incs_on = "\@ !"; my $incs_off = "\@ !"; my $incs = ""; |