Skip to content

Instantly share code, notes, and snippets.

@santiago
Created August 14, 2011 04:06
Show Gist options
  • Save santiago/1144558 to your computer and use it in GitHub Desktop.
Save santiago/1144558 to your computer and use it in GitHub Desktop.
if test "$link_all_deplibs" != no; then
# Add the search paths of all dependency libraries
for deplib in $dependency_libs; do
case $deplib in
-L*) path="$deplib" ;;
*.la)
func_dirname "$deplib" "" "."
dir="$func_dirname_result"
# We need an absolute path.
case $dir in
[\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
*)
absdir=`cd "$dir" && pwd`
if test -z "$absdir"; then
func_warning "cannot determine absolute directory name of \`$dir'"
absdir="$dir"
fi
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment