Skip to content

Conversation

@bwbarrett
Copy link
Member

OPAL_CHECK_PACKAGE expects the libdir argument to be an empty string
unless the user specifically requested a specific libdir. In that
case, we should always add a linker search flag for that directory,
as the user is specifying a directory location. The external
libevent configure code was trying to find an external libevent
library and then set the libdir to OPAL_CHECK_PACKAGE as the
found libdir, but without all the smarts to not add unnecessary
search flags. This resulted in a -L/usr/lib appearing early in
our explicit search paths if a user specified --with-libevent=/usr.

Signed-off-by: Brian Barrett bbarrett@amazon.com
(cherry picked from commit 75e82db)

OPAL_CHECK_PACKAGE expects the libdir argument to be an empty string
unless the user specifically requested a specific libdir.  In that
case, we should always add a linker search flag for that directory,
as the user is specifying a directory location.  The external
libevent configure code was trying to find an external libevent
library and then set the libdir to OPAL_CHECK_PACKAGE as the
found libdir, but without all the smarts to not add unnecessary
search flags.  This resulted in a -L/usr/lib appearing early in
our explicit search paths if a user specified --with-libevent=/usr.

Signed-off-by: Brian Barrett <bbarrett@amazon.com>
(cherry picked from commit 75e82db)
@bwbarrett bwbarrett added this to the v4.0.6 milestone Jun 2, 2021
@bwbarrett bwbarrett requested a review from jsquyres June 2, 2021 02:22
@jsquyres jsquyres changed the title libevent: Do not force addition of linker flags v4.0.x: libevent: Do not force addition of linker flags Jun 2, 2021
@bwbarrett
Copy link
Member Author

Refs #8990

@hppritcha hppritcha merged commit e9b61ab into open-mpi:v4.0.x Jun 3, 2021
@bwbarrett bwbarrett deleted the bugfix/v40x_dont_add_system_dirs_to_LDFLAGS branch November 30, 2021 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants