From 59c801da0830bb62a180f75c49ff5440955e21b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Tue, 28 Sep 2021 18:14:41 +0200 Subject: [PATCH] Fix STATIC_BUILD errors --- Makefile | 2 +- utils/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 975e7e5..39908f3 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,7 @@ $(BUILDDIR)/%.$(OBJEXT): $(SRCDIR)/%.$(SRCEXT) libgourou: libgourou.a libgourou.so libgourou.a: $(OBJECTS) - $(AR) crs $@ obj/*.o $(LDFLAGS) + $(AR) crs $@ obj/*.o ./lib/updfparser/obj/*.o libgourou.so: $(OBJECTS) $(UPDFPARSERLIB) $(CXX) obj/*.o $(LDFLAGS) -o $@ -shared diff --git a/utils/Makefile b/utils/Makefile index 9b2edfd..928164b 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -2,6 +2,7 @@ TARGETS=acsmdownloader adept_activate CXXFLAGS=-Wall `pkg-config --cflags Qt5Core Qt5Network` -fPIC -I$(ROOT)/include -I$(ROOT)/lib/pugixml/src/ + LDFLAGS=`pkg-config --libs Qt5Core Qt5Network` -L$(ROOT) -lcrypto -lzip -lz ifneq ($(STATIC_UTILS),) LDFLAGS += $(ROOT)/libgourou.a