[krbdev.mit.edu #1261] Creation of shared libraries ignore --with-ldopts
Ezra Peisach via RT
rt-comment at krbdev.mit.edu
Fri Nov 15 18:54:44 EST 2002
The creation of shared libraries hardcode the arguments to ld
without allowing a user to specify possibly ABI specific information.
The particular user (Jim Barlow), is on a 64bit IRIX machine. By default
the C compiler is generating -64 libraries. He has a desire to
generate -n32 libraries (probably for 32bit machines to be able to execute
the same code). --with-ldopts is honored in the linking of the executables
(and presumably he is using --with-ccopts as well) - but
the options are not used in the creation of the shared libraries.
There are two possible fixes:
a) config/lib.in: Change the invocation of LDCOMBINE in the creation
of the library to include $(LDFLAGS)
This would make the --ldopts a global change for all architectures.
b) aclocal.m4 (1.2 series)/ config/shlib.conf (1.3 development branch)
For the specific architectures that might want to override the
shared library creation - add $(LDFALGS) to the LDCOMBINE definitions.
This would be an architecture specific change.
Personally - I would lean towards (a)
More information about the krb5-bugs
mailing list