[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#165146: imake: macro definition problem



On Thu, Oct 17, 2002 at 12:27:43PM -0500, 165146@bugs.debian.org wrote:
> On Thu, Oct 17, 2002 at 09:20:27AM +0200, Erwin Burgstaller wrote:
> > I've already reported the same problem for version 4.1.0-17, now it's
> > back.
> > 
> > Here's how I've patched the configuration files in /usr/lib/X11/config
> > to get the macros for linking and installing a shared library and
> > makedepend working.
> 
> I won't apply your patch because it's insufficiently general.  It will
> cause syntax errors if "$(SOSYMLINK)" happens to be non-null.
> 
> Also, please unified diff format.

Ok, I see. I've tracked down the problem more carefully now:
The SOSYMLINK problem maybe solved by including Library.tmpl in
Imake.rules:


--- Imake.rules.~1~     2002-10-08 08:06:23.000000000 +0200
+++ Imake.rules 2002-10-17 23:42:36.000000000 +0200
@@ -3263,6 +3263,8 @@
 #include <oldlib.rules>
 #endif
 
+#include <Library.tmpl>
+
 #ifndef StaticLibrary
 #define StaticLibrary(libpath,libname)
Concat3(libpath,/,LibraryTargetName(libname))
 #endif


But I don't know if there are any side effects. Setting SOSYMLINK to true
or false in my Imakefile does SharedLibraryTarget() get function too,
but I think that's not the right way.

Erwin

PS:

Please forget about the stuff with site.def (makedepend). I came to
this some time ago. The only problem was: I'd defined: 

INCLUDES = -I ../inc 

in my Imake file, which causes errors with gccmakedep cause of the
whitespace between option and path. makedepend does not have any
problems with the whitespace.

Attachment: pgp8nRxZrv1Ym.pgp
Description: PGP signature


Reply to: