[cmake-developers] [CMake 0011768]: Mingw target can not process .DEF files

Mantis Bug Tracker mantis at public.kitware.com
Thu Jan 27 03:52:15 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11768 
====================================================================== 
Reported By:                Dongsheng Song
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11768
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2011-01-27 03:52 EST
Last Modified:              2011-01-27 03:52 EST
====================================================================== 
Summary:                    Mingw target can not process .DEF files
Description: 
After I declared the following DLL target:

ADD_LIBRARY(freetds-db SHARED freetds-db.def freetds-db.rc
        bcp.c
        dblib.c
        dbopen.c
        dbutil.c
        rpc.c
        xact.c)

CMake use the following link command:

C:\gcc-4.5-windows\bin\gcc.exe   -s -static -shared -o libfreetds-db.dll
-Wl,--out-implib,libfreetds-db.dll.a
-Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive
CMakeFiles\freetds-db.dir/objects.a -Wl,--no-whole-archive ..\tds\libtds.a
..\replacements\libreplacements.a -lws2_32 -lssp -lkernel32 -luser32 -lgdi32
-lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
	
Completely ignored freetds-db.def file, I expected freetds-db.def file in the
link file list, e.g.

C:\gcc-4.5-windows\bin\gcc.exe   -s -static -shared -o libfreetds-db.dll
-Wl,--out-implib,libfreetds-db.dll.a
-Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive
CMakeFiles\freetds-db.dir/objects.a -Wl,--no-whole-archive freetds-db.def
..\tds\libtds.a ..\replacements\libreplacements.a -lws2_32 -lssp -lkernel32
-luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32
-ladvapi32  
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-27 03:52 Dongsheng Song New Issue                                    
======================================================================




More information about the cmake-developers mailing list