+2004-01-11 Scott James Remnant <scott@netsplit.com>
+
+ * ltmain.in: new -precious-files-regex link mode option
+ to prevent removal of matching files from the temporary
+ output directory.
+ (Debian Bug #221420)
+ * doc/libtool.texi: document the new option.
+ * NEWS: announce the new option.
+
2004-01-08 Gary V. Vaughan <gary@gnu.org>
* libtoolize.in (func_copy_all_files): s/xfunc_copy/Xfunc_copy.
* Extracting symbols from an import library on cygwin and win32 now works.
* Recognises the 'R' symbol type on Solaris so read-only symbols can be
exported.
+* New link mode option `-precious-files-regex' to prevent accidental removal
+ of files you want to keep, such as test coverage data, from the temporary
+ output directory.
* Initial support for amigaos-ppc.
* Bug fixes.
\f
@item -o @var{output-file}
Create @var{output-file} from the specified objects and libraries.
+@item -precious-files-regex @var{regex}
+Prevents removal of files from the temporary output directory whose
+names match this regular expression. You might specify @samp{\.bbg?$}
+to keep those files created with @code{gcc -ftest-coverage} for example.
+
@item -release @var{release}
Specify that the library was generated by release @var{release} of your
package, so that users can easily tell which versions are newer than
no_install=no
objs=
non_pic_objects=
+ precious_files_regex=
prefer_static_libs=no
preload=no
prev=
prev=
continue
;;
+ precious_regex)
+ precious_files_regex="$arg"
+ prev=
+ continue
+ ;;
release)
release="-$arg"
prev=
-o) prev=output ;;
+ -precious-files-regex)
+ prev=precious_regex
+ continue
+ ;;
+
-release)
prev=release
continue
*.$objext)
;;
$output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
+ if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
+ then
+ continue
+ fi
removelist="$removelist $p"
;;
*) ;;
-no-undefined declare that a library does not refer to external symbols
-o OUTPUT-FILE create OUTPUT-FILE from the specified objects
-objectlist FILE Use a list of object files found in FILE to specify objects
+ -precious-files-regex REGEX
+ don't remove output files matching REGEX
-release RELEASE specify package release information
-rpath LIBDIR the created library will eventually be installed in LIBDIR
-R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries