automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to turn off shared library notice in output of make install?


From: Ed Hartnett
Subject: how to turn off shared library notice in output of make install?
Date: Wed, 27 Sep 2006 07:54:00 -0600
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Howdy all!

I am using autoconf/automake/libtool to build a popular freeware
climate science data package (netCDF).

I have shared libraries turned off by default, by having this in my
configure.ac:

AM_DISABLE_SHARED

Of course, when the user wants shared libraries, he gets them, by
using --enable-shared. But most of my users will not do this.

When I build and do a make install, with or without shared libraries,
I get the following notice in the output:

----------------------------------------------------------------------
Libraries have been installed in:
   /shecky/n3_new/install/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

This is all well and good for shared libraries, but can I somehow turn
off this notice in the case of static libraries only?

Otherwise it will confuse many users...

Thanks, and thanks for the fine freeware too!

Ed

-- 
Ed Hartnett  -- address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]