From d49c75370ae6ffcec4b3d11cd959fe7d251ef67c Mon Sep 17 00:00:00 2001 From: Unit 193 <32967979+Unit193@users.noreply.github.com> Date: Mon, 21 Aug 2023 05:24:25 -0400 Subject: Allow cross compilation. (#1182) --- src/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index f6ec5041..356f0a7b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -49,6 +49,7 @@ C_CXX_FLAGS := -MMD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -I export ASFLAGS := -D __GNUC__ -D __YASM__ export LFLAGS := +export PKG_CONFIG ?= pkg-config export PKG_CONFIG_PATH ?= /usr/local/lib/pkgconfig export WX_CONFIG ?= wx-config @@ -101,8 +102,8 @@ ifeq "$(origin INDICATOR)" "command line" else INDICATOR_LIBRARY=ayatana-appindicator-0.1 endif - export LIBS += $(shell pkg-config --libs $(INDICATOR_LIBRARY)) - C_CXX_FLAGS += $(shell pkg-config --cflags $(INDICATOR_LIBRARY)) -DHAVE_INDICATORS + export AYATANA_LIBS += $(shell $(PKG_CONFIG) --libs $(INDICATOR_LIBRARY)) + C_CXX_FLAGS += $(shell $(PKG_CONFIG) --cflags $(INDICATOR_LIBRARY)) -DHAVE_INDICATORS endif #------ Release configuration ------ -- cgit v1.2.3