Fix KDE3 .la file format on Cygwin

We teach KDE3Macros.cmake to generate .la files on Cygwin that match
those produced by libtool.  See issue #10122.
This commit is contained in:
Brad King 2010-01-13 13:54:34 -05:00
parent 8779559dd5
commit 3cba2b3a0f
1 changed files with 5 additions and 1 deletions

View File

@ -322,7 +322,11 @@ MACRO(KDE3_INSTALL_LIBTOOL_FILE _target)
FILE(APPEND ${_laname} "# The name that we can dlopen(3).\n")
FILE(APPEND ${_laname} "dlname='${_soname}'\n")
FILE(APPEND ${_laname} "# Names of this library\n")
IF(CYGWIN)
FILE(APPEND ${_laname} "library_names='${_soname}'\n")
ELSE(CYGWIN)
FILE(APPEND ${_laname} "library_names='${_soname} ${_soname} ${_soname}'\n")
ENDIF(CYGWIN)
FILE(APPEND ${_laname} "# The name of the static archive\n")
FILE(APPEND ${_laname} "old_library=''\n")
FILE(APPEND ${_laname} "# Libraries that this one depends upon.\n")