Am Sonntag, 22. Juli 2001 10:45 schrieb Nathan Scott:
> hi,
>
> On Sat, Jul 21, 2001 at 10:49:23PM +0200, Juergen Hasch wrote:
> > libacl.a is a static library that is used only at compile time. This is
> > because libacl.a contains only the stubs for libacl.so.
>
> No, this is not correct. libacl.a provides everything that libacl.so
> does, in terms of ACL code. A program can link against either the
> shared or the static version of the library - it is not necessary to
> have the other present at all at build time. Previously we _only_
> provided a static library for libacl (and libattr, and libdm, and...)
> but we now provide both. We now use the GNU libtool package to help
> with building these libraries, which we also did not do before.
You are right. It used to be this way in some other system I used and
I never cared to check if Linux works the same way.
> Having said all that, I do agree that the static libraries should
> go into /usr/lib - its just a matter of coercing libtool to put them
> there or changing our own install process - I'll have a look into it
> sometime this week.
This is all I wanted to say before I got mislead in the technical details...
Don't drink and email ;-)
The patch below does work for me, it may be better to add symlinks
of the libacl.so files to /usr/lib, too.
...Juergen
--- builddefs.in.orig Fri Jul 20 16:51:24 2001
+++ builddefs.in Sun Jul 22 10:44:11 2001
@@ -136,9 +136,9 @@
ifeq ($(ENABLE_SHARED),yes)
INSTALL_LTLIB_DEV = \
cd $(TOPDIR)/$(LIBNAME)/.libs; \
- ../$(INSTALL) -m 755 -d $(PKG_SLIB_DIR); \
- ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_SLIB_DIR); \
- ../$(INSTALL) -m 644 $(LIBNAME).lai $(PKG_SLIB_DIR)/$(LIBNAME).la ; \
+ ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
+ ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_LIB_DIR); \
+ ../$(INSTALL) -m 644 $(LIBNAME).lai $(PKG_LIB_DIR)/$(LIBNAME).la ; \
../$(INSTALL) -T so_base $(LIBNAME).lai $(PKG_SLIB_DIR)
else
INSTALL_LTLIB_DEV = $(INSTALL_LTLIB_STATIC)
@@ -146,8 +146,8 @@
INSTALL_LTLIB_STATIC = \
cd $(TOPDIR)/$(LIBNAME)/.libs; \
- ../$(INSTALL) -m 755 -d $(PKG_SLIB_DIR); \
- ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_SLIB_DIR)
+ ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
+ ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_LIB_DIR)
INSTALL_MAN = \
@for d in $(MAN_PAGES); do \
|