diff options
author | SeongJae Park <[email protected]> | 2017-06-18 09:56:03 +0900 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2017-06-23 13:35:08 -0600 |
commit | dc816e5d84cbc28baf776799839a632d6002236f (patch) | |
tree | 7a5f67d5541d3c5c075603e4e5b94d01342d15cf /tools/perf/util/c++/clang.cpp | |
parent | d02db4f5b2c9159a9c8e22c57b90b48268ccd6ee (diff) |
selftest/intel_pstate/aperf: Use LDLIBS instead of LDFLAGS
Build of aperf fails as below:
```
gcc -Wall -D_GNU_SOURCE -lm aperf.c -o /tools/testing/selftests/intel_pstate/aperf
/tmp/ccKf3GF6.o: In function `main':
aperf.c:(.text+0x278): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
```
The faulure occurs because -lm was defined as LDFLAGS and implicit rule
of make places LDFLAGS before source file. This commit fixes the
problem by using LDLIBS instead of LDFLAGS.
Signed-off-by: SeongJae Park <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions