Home
last modified time | relevance | path

Searched hist:dc816e5d (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/selftests/intel_pstate/
H A DMakefiledc816e5d Sat Jun 17 19:56:03 CDT 2017 SeongJae Park <sj38.park@gmail.com> 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 <sj38.park@gmail.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
dc816e5d Sat Jun 17 19:56:03 CDT 2017 SeongJae Park <sj38.park@gmail.com> 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 <sj38.park@gmail.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>