Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add support for lib64

  • Loading branch information...
commit 88107ad2adf00c5d9b4c9a7a53a033cabefcb11f 1 parent 3f5e25e
@mpapis mpapis authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 core/internal/shell/package/functions
View
9 core/internal/shell/package/functions
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.