+Fri Jun 20 08:21:34 1997 Gordon Matzigkeit <gord@gnu.ai.mit.edu>
+
+ * ltmain.sh.in: Redo two robustness fixes. Alexandre had the
+ correct approach, but I botched them.
+
+ * ltconfig.in (dynamic_linker): Disable shared libraries on
+ MkLinux unless GNU libc is in use. Reported by Akim Demaille.
+
Thu Jun 19 14:24:06 1997 Gordon Matzigkeit <gord@gnu.ai.mit.edu>
* ltmain.sh.in (install): Add a missing `test' command. Reported
NEWS - list of user-visible changes between releases of GNU libtool.
-New in 0.9h:
+New in 0.9i:
* Bug fixes.
* Better configuration test to find the system linker. The old test
was failing because people frequently install GNU ld, but don't
Nonfree:
========
KDE (K Desktop Environment): http://www.kde.org/
+
+Possible:
+=========
+OmniBroker (CORBA tool): http://www.ooc.com/ob.html
set dummy $LD
linker="$2"
echo $ac_n "checking if $LD is GNU ld... $ac_c" 1>&6
-# I'd rather use --version here, but apparently some GNU ld's don't accept
-# it, but do accept -v.
-if $LD -v 2>&1 | egrep '(GNU ld|with BFD)' > /dev/null; then
+# I'd rather use --version here, but apparently some GNU ld's only accept -v.
+if $LD -v 2>&1 </dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
with_gnu_ld=yes
linker="GNU ld"
fi
# No shared lib support for Linux oldld, aout, or coff.
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
dynamic_linker=no
- can_build_shared=no
;;
# This must be Linux ELF.
soname_spec='$libname.so.$major'
finish_cmds='ldconfig -n $libdir'
shlibpath_var=LD_LIBRARY_PATH
+
+ if test -f /lib/ld.so.1; then
+ dynamic_linker='GNU ld.so'
+ else
+ # Only the GNU ld.so supports shared libraries on MkLinux.
+ case "$host_cpu" in
+ powerpc*) dynamic_linker=no ;;
+ *) dynamic_linker='Linux ld.so' ;;
+ esac
+ fi
;;
netbsd* | openbsd*)
*)
dynamic_linker=no
- can_build_shared=no
;;
esac
echo "$ac_t""$dynamic_linker"
-
+test "$dynamic_linker" = no && can_build_shared=no
# FIXME need to add library stripping features
# strip -x works for most platforms, though not for static libraries on NetBSD
show_help=
# Parse our command line options once, thoroughly.
-seen_nonopt=no
-seen_c_flag=no
-seen_static_flag=no
while test $# -gt 0
do
arg="$1"
shift
- if test "$seen_nonopt" != yes; then
- case "$arg" in
- -*=*) optarg=`echo "$arg" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) optarg= ;;
- esac
+ case "$arg" in
+ -*=*) optarg=`echo "$arg" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+ *) optarg= ;;
+ esac
- # If the previous option needs an argument, assign it.
- if test -n "$prev"; then
- eval "$prev=\$arg"
- prev=
- prevopt=
- continue
- fi
+ # If the previous option needs an argument, assign it.
+ if test -n "$prev"; then
+ eval "$prev=\$arg"
+ prev=
+ prevopt=
+ continue
+ fi
- # Have we seen a non-optional argument yet?
- case "$arg" in
- --help)
- show_help=yes
- ;;
+ # Have we seen a non-optional argument yet?
+ case "$arg" in
+ --help)
+ show_help=yes
+ ;;
- --version)
- echo "$PROGRAM (GNU $PACKAGE) $VERSION"
- exit 0
- ;;
+ --version)
+ echo "$PROGRAM (GNU $PACKAGE) $VERSION"
+ exit 0
+ ;;
- --dry-run | -n)
- run=:
- ;;
+ --dry-run | -n)
+ run=:
+ ;;
- --features)
- echo "host: $host"
- if test "$build_libtool_libs" = yes; then
- echo "enable shared libraries"
- else
- echo "disable shared libraries"
- fi
- if test "$build_old_libs" = yes; then
- echo "enable static libraries"
- else
- echo "disable static libraries"
- fi
- exit 0
- ;;
+ --features)
+ echo "host: $host"
+ if test "$build_libtool_libs" = yes; then
+ echo "enable shared libraries"
+ else
+ echo "disable shared libraries"
+ fi
+ if test "$build_old_libs" = yes; then
+ echo "enable static libraries"
+ else
+ echo "disable static libraries"
+ fi
+ exit 0
+ ;;
- --finish) mode="finish" ;;
+ --finish) mode="finish" ;;
- --mode) prevopt="--mode" prev=mode ;;
- --mode=*) mode="$optarg" ;;
+ --mode) prevopt="--mode" prev=mode ;;
+ --mode=*) mode="$optarg" ;;
- -*)
- echo "$progname: unrecognized option \`$arg'" 1>&2
- echo "$help" 1>&2
- exit 1
- ;;
+ -*)
+ echo "$progname: unrecognized option \`$arg'" 1>&2
+ echo "$help" 1>&2
+ exit 1
+ ;;
- *)
- nonopt="$arg"
- seen_nonopt=yes
- ;;
- esac
- else
- # Just check for flags that other modes need to have knowledge of.
- case "$arg" in
- -c) seen_c_flag=yes ;;
- -static) seen_static_flag=yes ;;
- esac
- fi
+ *)
+ nonopt="$arg"
+ break
+ ;;
+ esac
done
if test "$mode" = NONE; then
case "$nonopt" in
*cc)
- if test "$seen_c_flag" = yes; then
- mode=compile
- else
- mode=link
- fi
+ mode=link
+ for arg
+ do
+ case "$arg" in
+ -c)
+ mode=compile
+ break
+ ;;
+ esac
+ done
;;
*install*|cp)
mode=install
vinfo=
# We need to know -static, to get the right output filenames.
- if test "$seen_static_flag" = yes; then
- build_libtool_libs=no build_old_libs=yes
- fi
+ for arg
+ do
+ case "$arg" in
+ -static)
+ build_libtool_libs=no
+ build_old_libs=yes
+ break
+ ;;
+ esac
+ done
for arg
do
makesequence = demo-make.test demo-exec.test \
demo-inst.test demo-unst.test hardcode.test
-TESTS = demo-conf.test $(makesequence) \
+TESTS = assign.test demo-conf.test $(makesequence) \
link.test link-2.test suffix.test test-e.test
EXTRA_DIST = defs tlibtool $(TESTS)