diff --git a/ActiveSync/common.make b/ActiveSync/common.make index 15024630c8..bf77fa3be9 100644 --- a/ActiveSync/common.make +++ b/ActiveSync/common.make @@ -20,7 +20,7 @@ ADDITIONAL_LIB_DIRS += \ -L../SoObjects/SOGo/$(GNUSTEP_OBJ_DIR)/ \ -L../SOPE/NGCards/$(GNUSTEP_OBJ_DIR)/ \ -L/usr/local/lib \ - -Wl,-rpath,$(GNUSTEP_SYSTEM_LIBRARIES)/sogo + -Wl,-rpath,$(SOGO_SYSLIBDIR)/sogo BUNDLE_LIBS += \ -lSOGo \ diff --git a/Main/GNUmakefile b/Main/GNUmakefile index 33a40230d7..ed6b610515 100644 --- a/Main/GNUmakefile +++ b/Main/GNUmakefile @@ -6,7 +6,7 @@ include ../Version ADDITIONAL_OBJCFLAGS += -fPIE ADDITIONAL_INCLUDE_DIRS += -ADDITIONAL_LDFLAGS += -Wl,--no-as-needed -fPIE -pie -Wl,--rpath,$(GNUSTEP_SYSTEM_LIBRARIES)/sogo +ADDITIONAL_LDFLAGS += -Wl,--no-as-needed -fPIE -pie -Wl,--rpath,$(SOGO_SYSLIBDIR)/sogo SOGOD = sogod TOOL_NAME = $(SOGOD) diff --git a/Tests/Integration/GNUmakefile.preamble b/Tests/Integration/GNUmakefile.preamble index 68878f4813..95b900b41c 100644 --- a/Tests/Integration/GNUmakefile.preamble +++ b/Tests/Integration/GNUmakefile.preamble @@ -16,4 +16,4 @@ ADDITIONAL_LIB_DIRS += \ -L/usr/local/lib/sogo -L/usr/lib/sogo -L/usr/lib64/sogo -lEOControl -lNGStreams -lNGMime -lNGExtensions -ADDITIONAL_LDFLAGS += -Wl,--no-as-needed -Wl,--rpath,$(GNUSTEP_SYSTEM_LIBRARIES)/sogo +ADDITIONAL_LDFLAGS += -Wl,--no-as-needed -Wl,--rpath,$(SOGO_SYSLIBDIR)/sogo diff --git a/Tools/GNUmakefile b/Tools/GNUmakefile index 5b1eed2e92..869fb52c69 100644 --- a/Tools/GNUmakefile +++ b/Tools/GNUmakefile @@ -4,7 +4,7 @@ include ../config.make include $(GNUSTEP_MAKEFILES)/common.make include ../Version -ADDITIONAL_LDFLAGS += -Wl,--rpath,$(GNUSTEP_SYSTEM_LIBRARIES)/sogo +ADDITIONAL_LDFLAGS += -Wl,--rpath,$(SOGO_SYSLIBDIR)/sogo ### SOGO_TOOL = sogo-tool diff --git a/configure b/configure index 2dc585c1dc..94d933fe75 100755 --- a/configure +++ b/configure @@ -270,7 +270,7 @@ genConfigMake() { fi cfgwrite "HOSTNAME=${HOSTNAME}" - cfgwrite "SOGO_SYSLIBDIR=\${GNUSTEP_LIBRARIES}" + cfgwrite "SOGO_SYSLIBDIR=\${GNUSTEP_SYSTEM_LIBRARIES}" cfgwrite "SOGO_LIBDIR=\${GNUSTEP_LIBRARY}/SOGo" cfgwrite "SOGO_TEMPLATESDIR=\${SOGO_LIBDIR}/Templates" cfgwrite "SOGO_WEBSERVERRESOURCESDIR=\${SOGO_LIBDIR}/WebServerResources"