You are not logged in.

#1 2014-01-27 18:16:25

foppe
Member
Registered: 2011-04-02
Posts: 47

linked library in /usr/lib

While upgrading I noticed that a statically linked library doesn't show up in /usr/lib.
This is what is supposed to happen:

install -Dm644 libdds.a "${pkgdir}/usr/lib/libdds.a"

The libdds.a is in ${srcdir}. Another file is correctly moved to ${pkgdir}/usr/include. So to be clear: the library compiles nicely in ${srcdir} but doesn't get moved to ${pkgdir}/usr/lib and also will not be installed through pacman.

I checked all variables. The weird thing is, and that is what I was experimenting with, if I compile it to be a dynamically linked library called libdds.so it actually does install in ${pkgdir}/usr/lib. So I think this is a feature of makepkg.

Anyone have a clue? I'm probably not looking for errors in the PKGBUILD but something 'in the system' that I don't understand.

You find the PKGBUILD here [1].

[1] https://aur.archlinux.org/packages/dd/dds/PKGBUILD

Offline

#2 2014-01-27 18:21:31

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,984

Re: linked library in /usr/lib

The default is for makepkg to delete static libs before compressing the package. If you need them, you need to add 'staticlibs' to the options array.

Last edited by Scimmia (2014-01-27 18:22:15)

Offline

#3 2014-01-27 18:21:49

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: linked library in /usr/lib

The default in makepkg.conf is not to strip the static libs from the package.  If you want to have it not do that, you can either set it in makepkg.conf or in the PKGBUILD in question.


Edit: Damn, snaked by Scimmia.

Last edited by WonderWoofy (2014-01-27 18:22:10)

Offline

#4 2014-01-27 18:23:11

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,984

Re: linked library in /usr/lib

haha, I'm sneaky that way....

Offline

Board footer

Powered by FluxBB