mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 19:24:01 -04:00
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>
This commit is contained in:
committed by
Dominik Brodowski
parent
e0c6082dae
commit
f2a00bb31c
@@ -193,7 +193,7 @@ $(UTIL_OBJS): $(UTIL_HEADERS)
|
||||
|
||||
cpupower: $(UTIL_OBJS) libcpupower.so.$(LIB_MAJ)
|
||||
$(ECHO) " CC " $@
|
||||
$(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) -lcpupower -lrt -lpci -L. -o $@ $(UTIL_OBJS)
|
||||
$(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) $(UTIL_OBJS) -lcpupower -lrt -lpci -L. -o $@
|
||||
$(QUIET) $(STRIPCMD) $@
|
||||
|
||||
po/$(PACKAGE).pot: $(UTIL_SRC)
|
||||
|
||||
Reference in New Issue
Block a user