ada/6637: Ada libraries should honour --enable-shared

Joseph Myers jsm28@cam.ac.uk
Sat May 11 14:56:00 GMT 2002


>Number:         6637
>Category:       ada
>Synopsis:       Ada libraries should honour --enable-shared
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 11 14:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Joseph S. Myers
>Release:        3.2 20020510 (experimental)
>Organization:
none
>Environment:
System: Linux digraph 2.2.20 #2 Sat Nov 10 16:44:22 UTC 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-cvs/configure --prefix=/opt/gcc/mainline --disable-shared --enable-threads=posix --with-system-zlib
>Description:

As recently discussed on the gcc list, the Ada libraries do not honour
--enable-shared, instead using another (undocumented) mechanism to
build shared libraries.

They should honour --enable-shared, as other libraries do.  They
should also honour --enable-shared=package, with an appropriate
package name (which should be listed in the --enable-shared
documentation), so that, as with other libraries, the use of shared
libraries for them can be controlled independently from that for other
libraries.  The default for them should be documented there, and
should probably default to shared libraries being enabled, as with
most other language libraries.  Shared libraries should be installed
in $(libdir).  Any of the Ada programs that link against the libraries
should (in the installed versions) be linked against the shared
libraries.

When shared libraries are disabled, dead symlinks libgnarl.so and
libgnat.so should not be installed, although they are at present.

This is related to Zack's PR ada/5910 (that no separate "make
gnatlib_and_tools" should be needed); in both cases the normal
"configure" and "make bootstrap" interface to the build should be
followed, and additional user-visible complexity for Ada should be
avoided.

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list