Re: Baubefehl lokalisieren

David Haller <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hello,

On Sat, 14 Feb 2009, Sascha 'saigkill' Manns wrote:
[..]
>Da hast du Recht. Allerdings baue ich auch meine Pakete für Contrib. Und 
>die legen Wert auf soname und versioned Librarys. Leider :-(
>
>Ich habe jetzt aus 
>gcc -pipe -shared -Wl,-soname,libtktray1.1.so -o libtktray1.1.so 
>tktray.o -lXext -lX11  -L/usr/lib -ltclstub8.5 -L/usr/lib -ltkstub8.5   
>: libtktray1.1.so  
>folgendes gemacht:
>gcc -pipe -shared -Wl,-soname,libtktray1.1.so.%{version} -o 
>libtktray1.1.so.%{version} tktray.o -lXext -lX11  -L/usr/lib -
>ltclstub8.5 -L/usr/lib -ltkstub8.5   
>: libtktray1.1.so.%{version}

Wo? Rufst du das per Hand im .spec auf?

>Reicht das zum setzen der Version, oder muss ich das anders machen?

Ein -soname als Linkeroption reicht. Auf .so.%{version} solltest du
dann noch passend symlinks setzen. Und die auch mit ins RPM einpacken.

-dnh

-- 
"What, you don't think "insmod emacs" is a good idea?"  -- Joe Moore
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.