libtool-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] add /etc/ld.so.conf contents to sys_lib_dlsearch_path_spec


From: Alexandre Duret-Lutz
Subject: Re: [PATCH] add /etc/ld.so.conf contents to sys_lib_dlsearch_path_spec
Date: Sat, 08 Nov 2003 12:57:52 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

>>> "Scott" == Scott James Remnant <address@hidden> writes:

 Scott> Ok, the third attempt at this bit of functionality.  I think I've got
 Scott> the ld.so.conf possible formats correct, so this will append every
 Scott> directory found there to sys_lib_dlsearch_path_spec.
[...]
 Scott> +  if test -f /etc/ld.so.conf; then
 Scott> +    sys_lib_dlsearch_path_spec="/lib /usr/lib "\
 Scott> +       `$SED -e 's/=[^=]*$//' -e 's/[:,        ]/ /g' /etc/ld.so.conf`
 Scott> +  fi

Does this really work?  To me this look like a call to value of
  `$SED -e 's/=[^=]*$//' -e 's/[:,      ]/ /g' /etc/ld.so.conf`,
with sys_lib_dlsearch_path_spec="/lib /usr/lib " put in the environment.

It indeed outputs
  sh: /usr/X11R6/lib: is a directory
here.
Perhaps you shouldn't put spaces between the closing " and the opening `.

Also it seems to me that
   /lib=libc6 /lib5=libc5
is valid ld.so.config syntax, but your sed command will output it
as 
   /lib=libc6 /lib5
-- 
Alexandre Duret-Lutz





reply via email to

[Prev in Thread] Current Thread [Next in Thread]