Commit 2b975462 authored by Kenneth Raffenetti's avatar Kenneth Raffenetti Committed by Pavan Balaji
Browse files

build-system: add lib64 dirs only if they exist



Stop unconditionally adding lib64 directories to LDFLAGS. This simplifies
linker commands and removes unnecessary flags from the compile wrappers.
Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@anl.gov>
parent f2d0f7fe
......@@ -47,8 +47,11 @@ AC_DEFUN([PAC_SET_HEADER_LIB_PATH],[
[AS_IF([test -n "${with_$1}"],
dnl is adding lib64 by default really the right thing to do? What if
dnl we are on a 32-bit host that happens to have both lib dirs available?
[PAC_APPEND_FLAG([-L${with_$1}/lib64],[LDFLAGS])
PAC_APPEND_FLAG([-L${with_$1}/lib],[LDFLAGS])])])
[PAC_APPEND_FLAG([-L${with_$1}/lib],[LDFLAGS])
AS_IF([test -d "${with_$1}/lib64}"],
[PAC_APPEND_FLAG([-L${with_$1}/lib64],[LDFLAGS])])
])
])
])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment