Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpupower: Fix linking with --as-needed

Fix linking order to avoid undefined reference errors when
using --as-needed linker flag.

Signed-off-by: Ozan Çağlayan <ozan@pardus.org.tr>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

authored by

Ozan Çağlayan and committed by
Dominik Brodowski
f2a00bb3 e0c6082d

+1 -1
+1 -1
tools/power/cpupower/Makefile
··· 193 193 194 194 cpupower: $(UTIL_OBJS) libcpupower.so.$(LIB_MAJ) 195 195 $(ECHO) " CC " $@ 196 - $(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) -lcpupower -lrt -lpci -L. -o $@ $(UTIL_OBJS) 196 + $(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) $(UTIL_OBJS) -lcpupower -lrt -lpci -L. -o $@ 197 197 $(QUIET) $(STRIPCMD) $@ 198 198 199 199 po/$(PACKAGE).pot: $(UTIL_SRC)