Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
CurrentCVS
-
None
-
None
-
AIX
Description
Discovered this a while back when doing a build on AIX. runConfigure allows the user to specify additional link options via the 'l' flag, but it seems that on AIX, the user provided options are not appended to LDFLAGS.
When link options are passed to runConfigure via the -l flag, they get stored in $linkeroptions .. which gets passed to
LDFLAGS="$LDFLAGS $linkeroptions $bitstobuildLink"
export LDFLAGS
But in Makefile.incl.in file, very few platforms include the $LDFLAGS in their link step. For example, on the AIX platform:
MAKE_SHARED = makeC++SharedLib_r -p 512 -brtl ${bitstobuildLink}
LINK = $(CXX) -qnotempinc $(CXXFLAGS) -brtl $(PLATFORM_COMPILE_OPTIONS) ${bitstobuildLink}
No mention of LDFLAGS in the link step. There are only a few platforms that use LDFLAGS at the link step but the majority of the platforms don't.
This should be cleaned up.