I wrote: > [Changing thread] > > Ralf Wildenhues wrote: > > I'm still very unsure about the "lib as archiver" patch, > esp as to the > > naming of the new variables. Maybe > > $AR $AR_FLAGS $AR_OFLAG$libname $objects > > is better, with $AR_OFLAG empty on *nix, and $AR_FLAGS > empty for "lib"? > > Maybe such a style is easier to copy for Automake? > > (Better keep this discussion to the respective thread, though.) > > Hey, that's a neat idea! > > What would you like the names to be? > > Suggestion: > $AR $AR_FLAGS $AR_OFLAGS$libname $objects > $AR $AR_TFLAGS $libname > $AR $AR_XFLAGS $AR_EFLAGS$libname [$object]
Sorry, the last one should be: $AR $AR_XFLAGS $AR_EFLAGS[$object] $libname > With these values for ar and lib respectively: > AR ar lib > AR_FLAGS cru > AR_OFLAGS -OUT: > AR_TFLAGS t -LIST > AR_XFLAGS x > AR_EFLAGS -EXTRACT: > > Throw in -NOLOGO in the lib variants if you like. > > And it is of course required to keep track of if > the whole archive can be extracted in one go, or if > you have to loop over the content and extract one > file at a time ($ar_extract_one_by_one). > > Then there's the issue with Automake using ARFLAGS, > not AR_FLAGS... Cheers, Peter