Skip to contentSkip to conversation

acl and attr: libmisc linkage

DISCUSSION Andreas Gruenbacher 1 participant 1 message Oct 28, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

I noticed that in some cases, gcc is unhappy when libmisc.a is specified after libattr.so and libacl.so, and doesn't link in stuff from libmisc.a (specifically, walk_tree). I don't know the exact reason for this behavior, but putting libmisc.a before the dynamic libraries fixes the problem, i.e., like this:

  -LLDLIBS = $(LIBACL) $(LIBATTR) $(LIBMISC)
  -LTDEPENDENCIES = $(LIBACL) $(LIBMISC)
  +LLDLIBS = $(LIBMISC) $(LIBACL) $(LIBATTR)
  +LTDEPENDENCIES = $(LIBMISC) $(LIBACL)

Is that acceptable?

Thanks,
Andreas