From: Vladimír Čunát Date: Tue, 23 Jan 2018 12:55:45 +0000 (+0100) Subject: make: fix Fedora problems with symbols X-Git-Tag: v1.5.3~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddb699d364cb69934f181ed66cd38360c9af343a;p=thirdparty%2Fknot-resolver.git make: fix Fedora problems with symbols --- diff --git a/config.mk b/config.mk index 4d87864bf..de9792af0 100644 --- a/config.mk +++ b/config.mk @@ -36,6 +36,11 @@ BUILD_CFLAGS += -Wno-unused -Wtype-limits -Wformat -Wformat-security -Wall BUILD_CFLAGS += -I$(abspath .) -I$(abspath lib/generic) -I$(abspath contrib) BUILD_CFLAGS += -DPACKAGE_VERSION="\"$(VERSION)\"" -DPREFIX="\"$(PREFIX)\"" -DMODULEDIR="\"$(MODULEDIR)\"" BUILD_CFLAGS += -fvisibility=hidden + +# Otherwise Fedora is making kresd symbols inaccessible for modules +BUILD_CFLAGS += -rdynamic +BUILD_LDFLAGS += -export-dynamic + ifeq (,$(findstring -O,$(CFLAGS))) BUILD_CFLAGS += -O2 endif