Skip to content

Commit

Permalink
add support for lib64
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed May 3, 2012
1 parent 3f5e25e commit 88107ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/internal/shell/package/functions
Expand Up @@ -371,10 +371,17 @@ __sm.package.set.ldflags()
trace_filter package || set -o xtrace
export LDFLAGS

if ! __sm.string.contains.word "-L${active_path}/lib" "${LDFLAGS:-}"
if __sm.paths.exists "${active_path}/lib" &&
! __sm.string.contains.word "-L${active_path}/lib" "${LDFLAGS:-}"
then
LDFLAGS="-L${active_path}/lib${LDFLAGS:+ }${LDFLAGS:-}"
fi

if __sm.paths.exists "${active_path}/lib64" &&
! __sm.string.contains.word "-L${active_path}/lib64" "${LDFLAGS:-}"
then
LDFLAGS="-L${active_path}/lib64${LDFLAGS:+ }${LDFLAGS:-}"
fi
}

__sm.package.set.cc()
Expand Down

0 comments on commit 88107ad

Please sign in to comment.