[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hide external library from a GNUstep library ?
From: |
Nicola Pero |
Subject: |
Re: Hide external library from a GNUstep library ? |
Date: |
Fri, 20 Sep 2002 08:50:06 +0100 (BST) |
You need to use
xxx_LIBRARIES_DEPEND_UPON = -lexternal_libraries
then myLibrary will be linked against external_libraries (which just means
that when you load myLibrary, the dynamic linker will automatically load
external_libraries as well), and so in myApplication you can just link
against myLibrary (and that automatically drags in the other libraries).
For an example, longer explanations etc, please have a look at
http://www.gnustep.it/nicola/Tutorials/MoreOnMakefiles/
(you're interested in section 2.6)
> Hi,
>
> I try to write a GNUstep library which hide all the exteral libraries.
> The relationship is
>
> myApplication -> myLibrary -> external_libraries
>
> myApplication and myLibrary are using GNUstep,
> and external_libraries is the general libraries, ex. libc.
>
> In myLibrary, I use ADDITIONAL_xxx_LIBS += -lexternal_libraries,
> and everything is fine.
> But in myApplication, if I only use -lmyLibrary,
> then it will complain that the functions in external_libraries can't be
> found.
> I have to use -lmyLibrary -lexternal_libraries in myApplication,
> to make it complie successfully.
> How could I hide the external_libraries from myApplication vi myLibrary ?
> I guess there are something wrong in my GNUmakefile for myLibrary.
> Any good GNUmakefile exmaple ?
>
> Thanx
>
> Yen-Ju
>
>
> _________________________________________________________________
> Join the world?s largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
>
> _______________________________________________
> Help-gnustep mailing list
> Help-gnustep@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnustep
>