summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makerules b/Makerules
index e52571ec..682160c7 100644
--- a/Makerules
+++ b/Makerules
@@ -27,10 +27,12 @@ endif
# Windows (MINGW) build doesn't use system libraries.
ifeq "$(OS)" "MINGW"
-NOX11 ?= yes
# Mac OS X doesn't have pkg-config so we hard code paths.
else ifeq "$(OS)" "MACOS"
+
+HAVE_X11 ?= yes
+
SYS_OPENSSL_CFLAGS = -DHAVE_OPENSSL
SYS_OPENSSL_LIBS = -lcrypto
@@ -54,6 +56,8 @@ RANLIB_CMD = xcrun ranlib $@
# Linux uses pkg-config for system libraries.
else ifeq "$(OS)" "Linux"
+HAVE_X11 ?= yes
+
ifeq "$(shell pkg-config --exists libcrypto && echo yes)" "yes"
SYS_OPENSSL_CFLAGS = -DHAVE_OPENSSL $(shell pkg-config --cflags libcrypto)
SYS_OPENSSL_LIBS = $(shell pkg-config --libs libcrypto)
@@ -138,6 +142,7 @@ RANLIB_CMD = xcrun ranlib $@
CROSSCOMPILE=yes
endif
+# TODO: If crosscompiling, why not just call "make libs" instead of this exception?
ifeq "$(CROSSCOMPILE)" "yes"
-NOX11 ?= yes
+HAVE_X11 ?= no
endif