Hit a snag with the X11 package:

$ find / -name libX11.so -o -name libX11.a 2>/dev/null
/usr/shlib/libX11.so
/usr/lib/libX11.a
$ ls -ld /lib
lrwxr-xr-x   1 root     system          7 Apr  8 10:59 /lib -> usr/lib


This means that the X11 package selects /lib/libX11.a for x11_libdir, 
which is probably not what we want here. Following patch makes it
find the shared X11 lib.

--- x11.spec.orig       2004-04-27 09:13:14 +0200
+++ x11.spec    2004-04-27 09:13:26 +0200
@@ -122,6 +122,7 @@
         /usr/[xX]11*/lib \
         /usr/[xX]386/lib \
         /usr/[xX]ree86/lib \
+        /usr/shlib \
         /lib \
         /usr/lib \
         /usr/lib/[xX] \


Before the gcc -oldstyle_liblookup patch, this didn't matter. x11_libdir
was /lib then, but using -lX11 made it scan for the shared lib first and
then for the archive one.. and since /usr/shlib is one of the system
paths, it found it there first.

man ld:

  When searching for libraries, ld looks for them, by default, in the
follow-
  ing directories in the order shown:

   1.  /usr/shlib

   2.  /usr/ccs/lib

   3.  /usr/lib/cmplrs/cc

   4.  /usr/lib

   5.  /usr/local/lib

   6.  /var/shlib
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to