[PATCH] Fix compilation without openssl and gnutls

Felix Janda <[email protected]> Mon, 25 Jan 2016 19:57:14 +0100
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <20160125185714.GA3356@nyan>
When HAVE_SSL is false, previously, md5c.o was only compiled when
EXTRAOBJS was unset. But this is never the case since the top level
Makefile exports EXTRAOBJS. Now, append md5c.o to EXTRAOBJS instead.

Bug: https://bugs.gentoo.org/show_bug.cgi?id=560234#c10
---
 src/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index 2d53139..fc889dc 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -39,7 +39,7 @@ include configure.mk
 
 # Only use own md5-code if neither OpenSSL nor GnuTLS are present
 ifneq ($(HAVE_SSL),1)
-    EXTRAOBJS ?= md5c.o
+    EXTRAOBJS += md5c.o
 endif
 
 GKRELLM_INCLUDES = gkrellm.h gkrellm-public-proto.h $(SHARED_PATH)/log.h
-- 
2.4.10