You are not logged in.

#1 2016-07-11 09:42:45

elbahek
Member
Registered: 2011-04-02
Posts: 4

How should I correctly add LD_PRELOAD in PKGBUILD [SOLVED]

So I finally managed to get latest joxi working. It requires lubcurl-compat and I need to run

LD_PRELOAD=libcurl.so.3 joxi

How do I correctly add this to PKGBUILD? Should I replace a line in .desktop file? Should I add some custom "preload" config?
Adding /etc/ld.so.conf.d/joxi.conf with

/usr/lib/libcurl.so.3

didn't do the trick.
I'm in need of advice, maybe a link to a similar PKGBUILD

Last edited by elbahek (2016-07-13 19:10:39)

Offline

#2 2016-07-11 10:35:38

mis
Member
Registered: 2016-03-16
Posts: 234

Re: How should I correctly add LD_PRELOAD in PKGBUILD [SOLVED]

The spotify package uses a wrapper script ( /usr/bin/spotify ).

#!/bin/sh
export LD_PRELOAD=libcurl.so.3
/usr/share/spotify/spotify "$@"

Offline

#3 2016-07-13 19:17:02

elbahek
Member
Registered: 2011-04-02
Posts: 4

Re: How should I correctly add LD_PRELOAD in PKGBUILD [SOLVED]

You can check new PKGBUILD at https://aur.archlinux.org/packages/joxi

Offline

Board footer

Powered by FluxBB