From 9501418ea2287658d1a11ce888ff97fa49e9164d Mon Sep 17 00:00:00 2001 From: Dr Stephen Henson Date: Tue, 8 Dec 2015 19:10:48 +0000 Subject: [PATCH] Don't use applink for static builds. Reviewed-by: Rich Salz --- util/pl/VC-32.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl index 284fe0381e..0f5547f056 100644 --- a/util/pl/VC-32.pl +++ b/util/pl/VC-32.pl @@ -361,9 +361,13 @@ sub do_link_rule $ret.="$target: $files $dep_libs"; if ($standalone == 1) { - $ret.=" \$(OBJ_D)${o}applink.obj\n"; + $ret.=" \$(OBJ_D)${o}applink.obj" if $shlib; + $ret.="\n"; $ret.=" \$(LINK) \$(LFLAGS) $efile$target @<<\n\t"; - $ret.= "\$(EX_LIBS) \$(OBJ_D)${o}applink.obj " if ($files =~ /O_FIPSCANISTER/ && !$fipscanisterbuild); + if ($files =~ /O_FIPSCANISTER/ && !$fipscanisterbuild) { + $ret.= "\$(EX_LIBS) "; + $ret.= "\$(OBJ_D)${o}applink.obj " if $shlib; + } $ret.="$files $libs\n<<\n"; } elsif ($standalone == 2) -- 2.25.1