Commit f2a00bb3 authored by Ozan Çağlayan's avatar Ozan Çağlayan Committed by Dominik Brodowski
Browse files

cpupower: Fix linking with --as-needed



Fix linking order to avoid undefined reference errors when
using --as-needed linker flag.
Signed-off-by: default avatarOzan Çağlayan <ozan@pardus.org.tr>
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent e0c6082d
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment