From: Gordon Matzigkeit Date: Tue, 1 Jul 1997 04:38:32 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: release-1-0a~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8972f0950339bd025899766a67e69e858cb0b9d2;p=thirdparty%2Flibtool.git *** empty log message *** --- diff --git a/ChangeLog b/ChangeLog index 2f6ec8e5d..afaf388e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jun 30 22:32:05 1997 Gordon Matzigkeit + + * ltconfig.in: Add /sbin into the path before running ldconfig on + Linux. Suggested by Kenneth Albanowski. + Sun Jun 29 19:51:50 1997 Gordon Matzigkeit * ltmain.sh.in: Change all the `eval "$run ..."' sequences to diff --git a/Makefile.am b/Makefile.am index 90231e110..26d1ef10e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,8 +33,8 @@ bin_SCRIPTS = libtool libtoolize libtool: ltconfig @echo 'WARNING: Warnings from ltconfig can be ignored. :-)' - CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \ - LD="${LD}" RANLIB="${RANLIB}" \ + CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \ + LD="$(LD)" LN_S="$(LN_S)" RANLIB="$(RANLIB)" \ $(srcdir)/ltconfig --srcdir=$(srcdir) $(pkgdatadir)/ltmain.sh libtoolize: libtoolize.in $(top_builddir)/config.status diff --git a/TODO b/TODO index 8da2531eb..33d37e6b5 100644 --- a/TODO +++ b/TODO @@ -2,6 +2,11 @@ is to have undocumented utility libraries, where only the shared version is installed. +* Somehow we need to make sure that static libraries never appear in +$deplibs. If a program linked against a library doesn't contain the +basename of the library (or is the same size), then the library is +probably static. + * A better check to detect broken collect2 on AIX, once the bug is fixed in GCC. diff --git a/configure.in b/configure.in index fbf99dbae..da8bb2931 100644 --- a/configure.in +++ b/configure.in @@ -11,6 +11,7 @@ dnl Use the specified CC, RANLIB, and LD while running ltconfig. AC_PROG_CC AC_PROG_RANLIB AM_PATH_PROG_LD +AC_PROG_LN_S AC_OUTPUT([Makefile doc/Makefile tests/Makefile]) diff --git a/doc/libtool.texi b/doc/libtool.texi index 8f35f270c..cfc9cc4d9 100644 --- a/doc/libtool.texi +++ b/doc/libtool.texi @@ -1853,9 +1853,12 @@ libraries are found. This restriction is only necessary to preserve compatibility with static library systems and simple dynamic library systems. -If your library depends on symbols that are defined in executables that -are linked against it, you need to use the @samp{-allow-undefined} link -flag (@pxref{Link mode}). +If your library depends on symbols that are defined in executables or +static libraries, then you cannot express the dependency with a +@samp{-l@var{name}} flag,@footnote{For static libraries, you +@emph{could} use a @samp{-l} flag, but it would cause conflicts +on systems which have non-PIC objects.} so you need to use the +@samp{-allow-undefined} link flag (@pxref{Link mode}). @node Dlopened modules @chapter Dlopened modules diff --git a/ltconfig.in b/ltconfig.in index 98bfd4b5e..7dea73638 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -810,7 +810,7 @@ linux-gnu*) version_type=linux library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' soname_spec='$libname.so.$major' - finish_cmds='ldconfig -n $libdir' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH if test -f /lib/ld.so.1; then diff --git a/tests/ChangeLog b/tests/ChangeLog index b12532704..9243c3c4e 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,9 @@ +Mon Jun 30 06:49:13 1997 Gordon Matzigkeit + + * if.test: New test to make sure that we haven't forgotten to + follow an `if' statement with a `test' command. This should avoid + the majority of hard-to-track bugs. + Thu Jun 19 14:31:49 1997 Gordon Matzigkeit * demo-conf.test (CONFIG_SITE): Set to /dev/null, so that the diff --git a/tests/Makefile.am b/tests/Makefile.am index 95483ccf5..f3d02495d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -5,7 +5,7 @@ AUTOMAKE_OPTIONS = gnits makesequence = demo-make.test demo-exec.test \ demo-inst.test demo-unst.test hardcode.test TESTS = assign.test demo-conf.test $(makesequence) \ - link.test link-2.test suffix.test test-e.test + if.test link.test link-2.test suffix.test test-e.test EXTRA_DIST = defs tlibtool $(TESTS) diff --git a/tests/test-e.test b/tests/test-e.test index ccaef4d08..2e148120b 100644 --- a/tests/test-e.test +++ b/tests/test-e.test @@ -11,7 +11,7 @@ fi . $srcdir/defs || exit 1 # Check that test -e isn't used in our portable shell scripts. -if grep -n 'test -e' $srcdir/../ltconfig $srcdir/../ltmain.sh; then +if egrep -n -e 'test[ ]+-e' $srcdir/../ltconfig $srcdir/../ltmain.sh; then echo "use test -f, not test -e to check for file existence" exit 1 fi