Skip to content

Conversation

@honggyukim
Copy link

Since the path of "ls" can be platform dependent, it'd be better not to
specifiy its absolute path.

  $ make
  ldd: /usr/bin/ls: No such file or directory
  g++ -Ilibleaktracer/include -Ilibleaktracer/src -DUSE_BACKTRACE ...
  g++ -Ilibleaktracer/include -Ilibleaktracer/src -DUSE_BACKTRACE ...
     ...

This patch is to fix the error above.

Since the path of "ls" can be platform dependent, it'd be better not to
specifiy its absolute path.

  $ make
  ldd: /usr/bin/ls: No such file or directory
  g++ -Ilibleaktracer/include -Ilibleaktracer/src -DUSE_BACKTRACE ...
  g++ -Ilibleaktracer/include -Ilibleaktracer/src -DUSE_BACKTRACE ...
     ...

This patch is to fix the error above.
CXX ?= g++
endif
LIBDIR := $(shell echo -n lib; (ldd /usr/bin/ls |grep -q lib64) && echo -n 64)
LIBDIR := $(shell echo -n lib; (`which ls` | grep -q lib64) && echo -n 64)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You fixed the parameter, but removed the call to ldd here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants