Bug in IMake - Doesn't use DESTLIB

Jean-Claude Gervais jc.gervais@videotron.ca
Thu Sep 12 10:42:00 GMT 2002


Alexander,

	I've changed my Imakefile based on the recommendations both you and Han N.
Nguyen have made.

	The only problem is that even though the shared library IS copied to the
proper destination, it's import-linking file (.a or .lib in Win32) is STILL
only being copied to the X folders:

Here's the Imakefile

-------------------------

#include <Library.tmpl>
LibraryObjectRule()

 LIBNAME = ldlib
    SRCS = ldlib.cpp
    OBJS = $(SRCS:.cpp=.o)

      CC = g++

   SOREV = 1.0

INCLUDES = -I../../include
 DESTLIB = ../../lib/Release/Cygwin

  BINDIR = ../../bin/Release/Cygwin
LOCALLIB = ../../lib/Release/Cygwin

SharedLibraryTarget($(LIBNAME),$(SOREV),$(OBJS),.,.)
InstallSharedLibrary($(LIBNAME),$(SOREV),$(DESTLIB))
DependTarget()
LintTarget()

-------------------------

And here is the output it produces:



>make install
install -c -m 0644 libldlib.a /usr/X11R6/lib/libldlib.a
install -c -m 0644 libldlib.dll ../../bin/Release/Cygwin/libldlib.dll
install in . done


Have you any idea how to make the .a file go to ../../lib/Release/Cygwin
instead?

Thank you.

Jean-Claude



-----Original Message-----
From: cygwin-xfree-owner@cygwin.com [mailto:cygwin-xfree-owner@cygwin.com]On
Behalf Of Alexander Gottwald
Sent: Tuesday, September 10, 2002 6:25 AM
To: Cygwin-XFree
Subject: Re: Bug in IMake - Doesn't use DESTLIB

On Mon, 9 Sep 2002, Jean-Claude Gervais wrote:

>
>       I've been trying to write an Imakefile that copies the
shared-library I'm
> building to a directory specified using the DESTLIB variable when the
'make
> install' target is invoked.
>
>       Although this works fine on Linux, invoking the 'make install' rule
on
> Cygwin results in the DLL being copied to X11's 'bin' directory.
>
>       Is this a know bug, and what should I do?

Hm, actually the dlls must be in the searchpath when the binary is started.
So it makes sense to locate in the bindir. I they are installed in DESTBIN.

bye
        ago
--
 Alexander.Gottwald@informatik.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723



More information about the Cygwin-xfree mailing list