summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 15 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index a83b028..0832039 100644
--- a/Makefile
+++ b/Makefile
@@ -196,16 +196,21 @@ LIBS_OPT += -march=native
LIBS_OPT += -flto
LIBS_OPT += -fuse-linker-plugin
-LIBS_PKG = `pkg-config --libs ncurses`
-#LIBS_PKG += `pkg-config --libs opencv`
-LIBS_PKG += `pkg-config --libs opencv4`
-LIBS_PKG += `pkg-config --libs zbar`
-LIBS_PKG += `pkg-config --libs tesseract`
-LIBS_PKG += `pkg-config --libs libalx-base`
-LIBS_PKG += `pkg-config --libs libalx-ncurses`
-LIBS_PKG += `pkg-config --libs libalx-cv`
-LIBS_PKG += `pkg-config --libs libalx-ocr`
-LIBS_PKG += `pkg-config --libs libalx-zbar`
+LIBS_PKG_A = `pkg-config --libs --static ncurses`
+LIBS_PKG_A += `pkg-config --libs --static zbar`
+LIBS_PKG_A += `pkg-config --libs --static libalx-base`
+LIBS_PKG_A += `pkg-config --libs --static libalx-ncurses`
+LIBS_PKG_A += `pkg-config --libs --static libalx-zbar`
+
+LIBS_PKG_SO = `pkg-config --libs tesseract`
+LIBS_PKG_SO += `pkg-config --libs libalx-ocr`
+LIBS_PKG_SO += `pkg-config --libs libalx-cv`
+LIBS_PKG_SO += `pkg-config --libs opencv4`
+#zbar
+LIBS_PKG_SO += `pkg-config --libs dbus-1` -l pthread
+
+
+LIBS_PKG = -static $(LIBS_PKG_A) -Wl,-Bdynamic $(LIBS_PKG_SO)
LIBS = $(LIBS_STD)
LIBS += $(LIBS_OPT)