mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
Merge pull request #12548 from neheb/power
powertop: fix compilation with glibc
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=powertop
|
PKG_NAME:=powertop
|
||||||
PKG_VERSION:=2.10
|
PKG_VERSION:=2.10
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://01.org/sites/default/files/downloads/
|
PKG_SOURCE_URL:=https://01.org/sites/default/files/downloads/
|
||||||
@@ -39,13 +39,10 @@ define Package/powertop/description
|
|||||||
and power management.
|
and power management.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
TARGET_LDFLAGS += \
|
||||||
ifeq ($(CONFIG_USE_UCLIBC),y)
|
$(if $(INTL_FULL),-lintl) \
|
||||||
TARGET_CFLAGS += -fno-stack-protector
|
$(if $(CONFIG_USE_GLIBC),-lm) \
|
||||||
endif
|
$(if $(CONFIG_USE_GLIBC),-lpthread)
|
||||||
TARGET_LDFLAGS += $(if $(INTL_FULL),-lintl)
|
|
||||||
|
|
||||||
CONFIGURE_ARGS += --without-pic
|
|
||||||
|
|
||||||
define Package/powertop/install
|
define Package/powertop/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
|
|||||||
Reference in New Issue
Block a user