Skip to content

Commit

Permalink
mk1mf: dtlstest needs ssltestlib, include it with a hack
Browse files Browse the repository at this point in the history
We don't really have a mechanism to include other object files into a given
test program.  For now, a simple hack in mk1mf.pl will do.

RT#4653

Reviewed-by: Rich Salz <[email protected]>
  • Loading branch information
levitte committed Aug 22, 2016
1 parent 01f879d commit 3cb28d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util/mk1mf.pl
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,8 @@
$defs.=&do_defs("EXHEADER",$exheader,"\$(INCO_D)","");
$rules.=&do_copy_rule("\$(INCO_D)",$exheader,"");

$defs.=&do_defs("T_OBJ",$test,"\$(OBJ_D)",$obj);
$rules.=&do_compile_rule("\$(OBJ_D)",$test,"\$(APP_CFLAGS)");
$defs.=&do_defs("T_OBJ","$test test${o}ssltestlib","\$(OBJ_D)",$obj);
$rules.=&do_compile_rule("\$(OBJ_D)","$test test${o}ssltestlib","\$(APP_CFLAGS)");

$defs.=&do_defs("E_OBJ",$e_exe,"\$(OBJ_D)",$obj);
$rules.=&do_compile_rule("\$(OBJ_D)",$e_exe,'-DMONOLITH $(APP_CFLAGS)');
Expand Down Expand Up @@ -764,6 +764,7 @@ sub fix_asm
{
$t=&bname($_);
$tt="\$(OBJ_D)${o}$t${obj}";
$tt.=" \$(OBJ_D)${o}ssltestlib${obj}" if $t eq "dtlstest";
$rules.=&do_link_rule("\$(TEST_D)$o$t$exep",$tt,"\$(LIBS_DEP)","\$(L_LIBS) \$(EX_LIBS)");
}

Expand Down

0 comments on commit 3cb28d1

Please sign in to comment.