Re: :dll and linking to other libraries

Bram Moolenaar <[email protected]> Mon, 26 Jul 2004 10:33:52 +0200
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Magnus Therning wrote:

> >It appears you are using Linux-specific things.  Aap tries to be
> >portable, thus not rely on system-specific implementation of commands.
> 
> Well, I'd argue that part of the portability of a tool would be that it
> adapts to the platform and its tools. On Windows it adapts and uses the
> M$ tools, why doesn't it adapt to Linux?

Aap recipes should not contain system-specific things, if possible.
Then the same recipe runs on many systems.  The system-specific behavior
should be restricted to a few places.

Main problem with portability is all the different arguments you can
give to a compiler.  These are not very portable.  The only sort-of
standard that exists is what the original Unix cc accepts.  gcc and msvc
have added lots of non-standard arguments.

> Besides this isn't a Linux specific thing:
> 
>  ldd(1) man pages:
>  SunOS: http://bama.ua.edu/cgi-bin/man-cgi?00+00
>  FreeBSD: http://www.freebsd.org/cgi/man.cgi?query=ldd&sektion=1&apropo> s=0&manpath=freebsd

I'm using FreeBSD, but it's ldd apparently works differently.  Might
depend on the version used.

> The line
> 
>  LD = gcc
> 
> has absolutely no effect on :dll rules for me, linking is still done
> with 'ld -shared'.

Sorry, $LD is only used for normal linking.  For a shared library
$SHLINK is used.

-- 
From "know your smileys":
 y:-)	Bad toupee

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click