Skip to content

Commit f2a00bb

Browse files
Ozan ÇağlayanDominik Brodowski
authored andcommitted
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>
1 parent e0c6082 commit f2a00bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/power/cpupower/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ $(UTIL_OBJS): $(UTIL_HEADERS)
193193

194194
cpupower: $(UTIL_OBJS) libcpupower.so.$(LIB_MAJ)
195195
$(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 $@
197197
$(QUIET) $(STRIPCMD) $@
198198

199199
po/$(PACKAGE).pot: $(UTIL_SRC)

0 commit comments

Comments
 (0)