]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Don't specify MFC library in Leash build
authorGreg Hudson <ghudson@mit.edu>
Sat, 5 May 2018 21:53:54 +0000 (17:53 -0400)
committerGreg Hudson <ghudson@mit.edu>
Sun, 13 May 2018 03:50:34 +0000 (23:50 -0400)
Since MFC 3.0 (which shipped with Visual C++ 2.0, decades ago) it has
been unnecessary to specify the MFC library in the link line; the
headers can magically add the right one.  Guessing the MFC version
from $(VISUALSTUDIOVERSION) does not work with Visual Studio 2017 (we
guess 150; the correct value is 140).

ticket: 8678 (new)

src/windows/leash/Makefile.in

index 1b124e90f6df9527ef592f37a7b57ae8626f17b2..7ab669a2e59925bb1e0eabf2d1f4788ebb5b9e4f 100644 (file)
@@ -14,17 +14,6 @@ AFS_INCLUDES=
 AFS_LIBS=
 !endif
 
-!if defined(VISUALSTUDIOVERSION)
-MFC_VERSION=$(VISUALSTUDIOVERSION:.=)
-!else
-MFC_VERSION=100
-!endif
-
-!if defined(NODEBUG)
-MFCLIB=MFC$(MFC_VERSION).LIB
-!else
-MFCLIB=MFC$(MFC_VERSION)D.LIB
-!endif
 EXE_NAME=leash
 WSHELPER=wshelp32
 
@@ -101,7 +90,7 @@ all: Makefile $(OUTPRE)$(EXE_NAME).exe
 $(OUTPRE)$(EXE_NAME).exe: $(OBJS) $(XOBJS) $(LIBS)
        $(LINK) $(LFLAGS) /out:$@ /ENTRY:WinMainCRTStartup $(OBJS) $(XOBJS) \
          $(LIBS) $(SYSLIBS) $(BUILDTOP)\util\wshelper\$(OUTPRE)$(WSHELPER).lib \
-         ../lib/$(OUTPRE)libwin.lib $(MFCLIB) $(SCLIB)
+         ../lib/$(OUTPRE)libwin.lib $(SCLIB)
        copy $@ "$(OUTPRE)MIT Kerberos.exe"
 
 kfwribbon.bml kfwribbon.h kfwribbon.rc: kfwribbon.xml