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

Re: should -dev libraries depending on other -dev packages?

Le mercredi 13 mai 2009 à 16:16 +1000, Robert Collins a écrit :
> > If the pkg-config files or the headers still reference libdb, you’ll
> > need it as a dependency anyway, but otherwise, it can be safely removed
> > after you do that.
> Are the following two items correct:
>  - to link statically you need libdb ?
>  - to link dynamically you don't ?
> If they are both simultaneously correct then the .la should represent
> this, and be doing the right thing.

No, you should not rely on libtool to do that. It will either break
havoc when linking statically or add gazillions of junk when linking

Just rely on pkg-config, put -ldb in Libs.private, and voilà.

 .''`.      Josselin Mouette
: :' :
`. `'   “I recommend you to learn English in hope that you in
  `-     future understand things”  -- Jörg Schilling

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

Reply to: