Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Fix an error that fails to find ls #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.
@@ -19,7 +19,7 @@ else
ifeq ($(CXX),)
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.

None yet

2 participants