From: Ozan Çağlayan Date: Thu, 19 Jan 2012 14:06:36 +0000 (+0200) Subject: cpupower: Fix linking with --as-needed X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f2a00bb31cef363199c0f5870e9cd386ea3f5919;p=linux-beck.git 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 Signed-off-by: Dominik Brodowski --- diff --git a/tools/power/cpupower/Makefile b/tools/power/cpupower/Makefile index e8a03aceceb1..f01b3f5e3126 100644 --- a/tools/power/cpupower/Makefile +++ b/tools/power/cpupower/Makefile @@ -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)