Skip to content

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

Open
honggyukim wants to merge 1 commit intofredericgermain:masterfrom
honggyukim:build-fix
Open

build: Fix an error that fails to find ls#12
honggyukim wants to merge 1 commit intofredericgermain:masterfrom
honggyukim:build-fix

Conversation

@honggyukim
Copy link
Copy Markdown

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.
Comment thread Makefile
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
Copy Markdown
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