From ffe372f717b19cf8d97cb187d63a68da1989e064 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 21 Jun 2023 10:11:56 +0200 Subject: battstat: Use libtool to build libapm Apparently there is a build failure on some hosts because the build library didn't have the proper PIC settings, see #651. Using libtool fixes it as it is able to build true shared objects. --- battstat/Makefile.am | 2 +- battstat/apmlib/Makefile.am | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'battstat') diff --git a/battstat/Makefile.am b/battstat/Makefile.am index 7606ab4d..ed8d852c 100644 --- a/battstat/Makefile.am +++ b/battstat/Makefile.am @@ -8,7 +8,7 @@ APMLIB = -lapm APMDIR = APMINC = else -APMLIB = apmlib/libapm.a +APMLIB = apmlib/libapm.la APMDIR = apmlib APMINC = -I$(srcdir)/apmlib/ endif diff --git a/battstat/apmlib/Makefile.am b/battstat/apmlib/Makefile.am index cdffe253..b5f5f33a 100644 --- a/battstat/apmlib/Makefile.am +++ b/battstat/apmlib/Makefile.am @@ -10,9 +10,9 @@ AM_CPPFLAGS = \ $(MATE_APPLETS_CFLAGS) \ -DG_LOG_DOMAIN=\"battstat_applet\" -noinst_LIBRARIES = libapm.a +noinst_LTLIBRARIES = libapm.la -libapm_a_SOURCES = apmlib.c apm.h +libapm_la_SOURCES = apmlib.c apm.h -include $(top_srcdir)/git.mk -- cgit v1.2.1