Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1673467

[PATCH 3/3] selftests/intel_pstate: fix undefined reference when building

From Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Newsgroups linux.kernel
Subject [PATCH 3/3] selftests/intel_pstate: fix undefined reference when building
Date 2017-06-23 12:40 +0200
Message-ID <tVuam-YI-15@gated-at.bofh.it> (permalink)
References <tVual-YI-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Currently the build fails with:

/tmp/ccmgtz8N.o: In function `main':
aperf.c:(.text+0x278): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status

Replace LDFLAGS with LDLIBS to ensure proper ordering of arguments in
build rules.

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
---
 tools/testing/selftests/intel_pstate/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/intel_pstate/Makefile b/tools/testing/selftests/intel_pstate/Makefile
index 19678e9..80fd0ba 100644
--- a/tools/testing/selftests/intel_pstate/Makefile
+++ b/tools/testing/selftests/intel_pstate/Makefile
@@ -1,5 +1,5 @@
 CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE
-LDFLAGS := $(LDFLAGS) -lm
+LDLIBS := $(LDFLAGS) -lm
 
 TEST_GEN_FILES := msr aperf
 
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] kselftest build errors Marcin Nowakowski <marcin.nowakowski@imgtec.com> - 2017-06-23 12:40 +0200
  [PATCH 3/3] selftests/intel_pstate: fix undefined reference when building Marcin Nowakowski <marcin.nowakowski@imgtec.com> - 2017-06-23 12:40 +0200
  [PATCH 1/3] selftests/{net,memfd}: fix undefined references to external libraries Marcin Nowakowski <marcin.nowakowski@imgtec.com> - 2017-06-23 12:40 +0200
  [PATCH 2/3] selftests/gpio: fix build error Marcin Nowakowski <marcin.nowakowski@imgtec.com> - 2017-06-23 12:40 +0200
    Re: [PATCH 2/3] selftests/gpio: fix build error Fathi Boudra <fathi.boudra@linaro.org> - 2017-06-28 10:40 +0200
  Re: [PATCH 0/3] kselftest build errors Shuah Khan <shuah@kernel.org> - 2017-06-23 21:50 +0200
    Re: [PATCH 0/3] kselftest build errors Fathi Boudra <fathi.boudra@linaro.org> - 2017-06-28 10:40 +0200
      Re: [PATCH 0/3] kselftest build errors Shuah Khan <shuah@kernel.org> - 2017-06-28 16:30 +0200
        Re: [PATCH 0/3] kselftest build errors Fathi Boudra <fathi.boudra@linaro.org> - 2017-06-29 10:40 +0200

csiph-web