Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VMS: Fix the passing of cflags for things not being installed #3247

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions Configurations/10-main.conf
Expand Up @@ -1789,9 +1789,9 @@ sub vms_info {
debug => "/DEBUG/TRACEBACK",
release => "/NODEBUG/NOTRACEBACK"),
lib_cflags => add("/NAMES=(AS_IS,SHORTENED)/EXTERN_MODEL=STRICT_REFDEF"),
# no_inst_bin_cflags is used instead of bin_cflags by descrip.mms.tmpl
# for object files belonging to selected internal programs
no_inst_bin_cflags => "/NAMES=(AS_IS,SHORTENED)",
# no_inst_lib_cflags is used instead of lib_cflags by descrip.mms.tmpl
# for object files belonging to selected internal libraries
no_inst_lib_cflags => "",
shared_target => "vms-shared",
dso_scheme => "vms",
thread_scheme => "pthreads",
Expand Down
2 changes: 1 addition & 1 deletion Configurations/common.tmpl
Expand Up @@ -133,7 +133,7 @@
objs => [ map { (my $x = $_) =~ s|\.o$||; $x }
@{$unified_info{sources}->{$lib}} ]);
foreach (@{$unified_info{sources}->{$lib}}) {
doobj($_, $lib, intent => "lib");
doobj($_, $lib, intent => "lib", installed => is_installed($lib));
}
$cache{$lib} = 1;
}
Expand Down
12 changes: 6 additions & 6 deletions Configurations/descrip.mms.tmpl
Expand Up @@ -157,12 +157,12 @@ CFLAGS_Q=$(CFLAGS)
DEPFLAG= /DEFINE=({- join(",", @{$config{depdefines}}) -})
LDFLAGS= {- $target{lflags} -}
EX_LIBS= {- $target{ex_libs} ? ",".$target{ex_libs} : "" -}{- $config{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)' -}
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} -}

Expand Down
10 changes: 10 additions & 0 deletions test/asn1_internal_test.c
Expand Up @@ -59,7 +59,17 @@ static int test_tbl_standard()
*
***/

#ifdef __VMS
# pragma names save
# pragma names as_is,shortened
#endif

#include "internal/asn1_int.h"

#ifdef __VMS
# pragma names restore
#endif

#include "../crypto/asn1/standard_methods.h"

static int test_standard_methods()
Expand Down
10 changes: 10 additions & 0 deletions test/chacha_internal_test.c
Expand Up @@ -16,8 +16,18 @@
#include <openssl/opensslconf.h>
#include "test_main.h"
#include "testutil.h"

#ifdef __VMS
# pragma names save
# pragma names as_is,shortened
#endif

#include "internal/chacha.h"

#ifdef __VMS
# pragma names restore
#endif

const static unsigned int key[] = {
0x03020100, 0x07060504, 0x0b0a0908, 0x0f0e0d0c,
0x13121110, 0x17161514, 0x1b1a1918, 0x1f1e1d1c
Expand Down
11 changes: 11 additions & 0 deletions test/poly1305_internal_test.c
Expand Up @@ -14,7 +14,18 @@

#include "testutil.h"
#include "test_main_custom.h"

#ifdef __VMS
# pragma names save
# pragma names as_is,shortened
#endif

#include "internal/poly1305.h"

#ifdef __VMS
# pragma names restore
#endif

#include "../crypto/poly1305/poly1305_local.h"
#include "e_os.h"

Expand Down
11 changes: 11 additions & 0 deletions test/siphash_internal_test.c
Expand Up @@ -15,7 +15,18 @@
#include <openssl/bio.h>
#include "testutil.h"
#include "test_main_custom.h"

#ifdef __VMS
# pragma names save
# pragma names as_is,shortened
#endif

#include "internal/siphash.h"

#ifdef __VMS
# pragma names restore
#endif

#include "../crypto/siphash/siphash_local.h"
#include "e_os.h"

Expand Down
10 changes: 10 additions & 0 deletions test/tls13encryptiontest.c
Expand Up @@ -9,9 +9,19 @@

#include <openssl/ssl.h>
#include <openssl/evp.h>

#ifdef __VMS
# pragma names save
# pragma names as_is,shortened
#endif

#include "../ssl/ssl_locl.h"
#include "../ssl/record/record_locl.h"

#ifdef __VMS
# pragma names restore
#endif

#include "testutil.h"
#include "test_main.h"

Expand Down
10 changes: 10 additions & 0 deletions test/tls13secretstest.c
Expand Up @@ -9,8 +9,18 @@

#include <openssl/ssl.h>
#include <openssl/evp.h>

#ifdef __VMS
# pragma names save
# pragma names as_is,shortened
#endif

#include "../ssl/ssl_locl.h"

#ifdef __VMS
# pragma names restore
#endif

#include "testutil.h"
#include "test_main.h"

Expand Down
11 changes: 1 addition & 10 deletions test/uitest.c
Expand Up @@ -13,23 +13,14 @@
#include <openssl/err.h>

/*
* We know that on VMS, the [.apps] object files are compiled with uppercased
* symbols. We must therefore follow suit, or there will be linking errors.
* Additionally, the VMS build does stdio via a socketpair.
* The VMS build does stdio via a socketpair.
*/
#ifdef __VMS
# pragma names save
# pragma names uppercase, truncated

# include "../apps/vms_term_sock.h"
#endif

#include "../apps/apps.h"

#ifdef __VMS
# pragma names restore
#endif

#include "testutil.h"
#include "test_main_custom.h"

Expand Down
11 changes: 11 additions & 0 deletions test/wpackettest.c
Expand Up @@ -9,7 +9,18 @@

#include <string.h>
#include <openssl/buffer.h>

#ifdef __VMS
# pragma names save
# pragma names as_is,shortened
#endif

#include "../ssl/packet_locl.h"

#ifdef __VMS
# pragma names restore
#endif

#include "testutil.h"
#include "test_main_custom.h"

Expand Down
9 changes: 9 additions & 0 deletions test/x509_internal_test.c
Expand Up @@ -24,9 +24,18 @@
*
***/

#ifdef __VMS
# pragma names save
# pragma names as_is,shortened
#endif

#include "../crypto/x509v3/ext_dat.h"
#include "../crypto/x509v3/standard_exts.h"

#ifdef __VMS
# pragma names restore
#endif

static int test_standard_exts()
{
size_t i;
Expand Down