Skip to content

Commit

Permalink
support for building openssl on 32bit archs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Eissing committed Jun 22, 2015
1 parent a44de71 commit db318d1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sandbox/httpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
#


OS = $(shell uname -s)
MACHINE = $(shell uname -m)


APR_VERSION = 1.5.2
APR_DIR = apr-$(APR_VERSION)
Expand All @@ -40,7 +43,7 @@ OPENSSL_DIR = openssl-latest
OPENSSL_TAR = $(OPENSSL_DIR).tar.gz
OPENSSL_URL = $(OPENSSL_BASE)/source/latest.tar.gz
OPENSSL_CONF_CMD = CFLAGS=-fPIC ./Configure
OPENSSL_CONF = shared linux-generic32
OPENSSL_CONF = shared linux-$(MACHINE)

FCGI_VERSION = 2.3.9
FCGI_DIR = mod_fcgid-$(FCGI_VERSION)
Expand All @@ -53,8 +56,6 @@ BLD_PREFIX = $(shell dirname $$PWD)/install

CURL_OPTS = --progress-bar

OS = $(shell uname -s)

HTTPD_CONF = --enable-mpms-shared=all --with-included-apr
HTTPD_DEPS = $(GEN)/$(HTTPD_DIR)/.apr-extracted

Expand All @@ -69,6 +70,9 @@ ifeq ($(OS),Darwin)
HTTPD_DEPS += $(INST_DIR)/.pcre-installed
HTTPD_CONF += --with-pcre=$(BLD_PREFIX)
endif
ifeq ($(MACHINE),i686)
OPENSSL_CONF = shared linux-generic32
endif

OPENSSL_VERSION = $(shell openssl version -v | sed -e 's/OpenSSL *//g' -e 's/[a-z]* .*//g')

Expand Down

0 comments on commit db318d1

Please sign in to comment.