86b07d220c
Set X11_LIBS to avoid the following build failure: /home/buildroot/autobuild/run/instance-1/output-1/host/bin/aarch64-linux-gnu-gcc main.o alerts.o battery.o base64.o clock.o cpu.o disk.o fs.o hostname.o inet.o mail.o mem.o net.o proc.o sensors.o uptime.o chart.o panel.o config.o gui.o krell.o plugins.o pixops.o client.o utils.o sysdeps-unix.o deprecated.o log.o winops-x11.o -o gkrellm \ -L/home/buildroot/autobuild/run/instance-1/output-1/host/bin/../aarch64-buildroot-linux-gnu/sysroot/usr/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lharfbuzz -lfontconfig -lfreetype -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -L/usr/X11R6/lib -lX11 -lSM -lICE -L/home/buildroot/autobuild/run/instance-1/output-1/host/bin/../aarch64-buildroot-linux-gnu/sysroot/usr/lib -lssl -lcrypto -lm -Wl,-E aarch64-linux-gnu-gcc: ERROR: unsafe header/library path used in cross-compilation: '-L/usr/X11R6/lib' Fixes: - http://autobuild.buildroot.org/results/fff9a48efe3818f67a8f4b0fe3a3a605e4985b3b Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# gkrellm
|
|
#
|
|
################################################################################
|
|
|
|
GKRELLM_VERSION = 2.3.11
|
|
GKRELLM_SITE = http://gkrellm.srcbox.net/releases
|
|
GKRELLM_SOURCE = gkrellm-$(GKRELLM_VERSION).tar.bz2
|
|
GKRELLM_LICENSE = GPL-3.0+
|
|
GKRELLM_LICENSE_FILES = COPYING COPYRIGHT
|
|
GKRELLM_DEPENDENCIES = host-pkgconf libglib2 $(TARGET_NLS_DEPENDENCIES)
|
|
GKRELLM_BUILD_OPTS = \
|
|
STRIP="" \
|
|
SYS_LIBS=$(TARGET_NLS_LIBS)
|
|
|
|
ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
|
|
GKRELLM_DEPENDENCIES += lm-sensors
|
|
else
|
|
GKRELLM_BUILD_OPTS += without-libsensors=yes
|
|
endif
|
|
|
|
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
|
GKRELLM_BUILD_OPTS += enable_nls=1
|
|
else
|
|
GKRELLM_BUILD_OPTS += enable_nls=0
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GKRELLM_SERVER)$(BR2_PACKAGE_GKRELLM_CLIENT),yy)
|
|
GKRELLM_BUILD_DIR = $(@D)
|
|
else ifeq ($(BR2_PACKAGE_GKRELLM_SERVER),y)
|
|
GKRELLM_BUILD_DIR = $(@D)/server
|
|
else
|
|
GKRELLM_BUILD_DIR = $(@D)/src
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GKRELLM_CLIENT),y)
|
|
GKRELLM_DEPENDENCIES += libgtk2 xlib_libSM
|
|
GKRELLM_BUILD_OPTS += X11_LIBS="-lX11 -lSM -lICE"
|
|
GKRELLM_LICENSE += GPL (base64.c), Public Domain (md5.h, md5c.c)
|
|
endif
|
|
|
|
define GKRELLM_BUILD_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) \
|
|
-C $(GKRELLM_BUILD_DIR) $(GKRELLM_BUILD_OPTS)
|
|
endef
|
|
|
|
define GKRELLM_INSTALL_TARGET_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) \
|
|
-C $(GKRELLM_BUILD_DIR) $(GKRELLM_BUILD_OPTS) \
|
|
INSTALLROOT=$(TARGET_DIR)/usr install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|