aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2015-10-11 16:46:55 -0700
committerBrent Cook <bcook@openbsd.org>2015-10-14 16:33:39 -0500
commit448645d47991e36337c11dff0271be77218e82c7 (patch)
tree13b11ef192d3ccc1206bf7119624716457b44591
parent9afc452761c630816e443b9e945f3db2259afbb9 (diff)
downloadportable-448645d47991e36337c11dff0271be77218e82c7.tar.gz
portable-448645d47991e36337c11dff0271be77218e82c7.tar.bz2
portable-448645d47991e36337c11dff0271be77218e82c7.zip
Use bundled headers instead of installed headers when building
The build system incorrectly set include directives in AM_CFLAGS which causes them to be placed after the configured CPPFLAGS. Thus, if a user or packaging system sets CPPFLAGS to a location that has libressl or openssl headers installed, they will be used instead of the bundled versions. This corrects that issue by setting up the variables correctly. https://github.com/libressl-portable/portable/issues/150 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-rw-r--r--Makefile.am.common4
-rw-r--r--crypto/Makefile.am9
2 files changed, 7 insertions, 6 deletions
diff --git a/Makefile.am.common b/Makefile.am.common
index b00473d..49019ec 100644
--- a/Makefile.am.common
+++ b/Makefile.am.common
@@ -1,2 +1,2 @@
1AM_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/include/compat 1AM_CFLAGS =
2AM_CPPFLAGS = -DLIBRESSL_INTERNAL 2AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/include/compat -DLIBRESSL_INTERNAL
diff --git a/crypto/Makefile.am b/crypto/Makefile.am
index bed4712..e1e785d 100644
--- a/crypto/Makefile.am
+++ b/crypto/Makefile.am
@@ -1,8 +1,8 @@
1include $(top_srcdir)/Makefile.am.common 1include $(top_srcdir)/Makefile.am.common
2 2
3AM_CFLAGS += -I$(top_srcdir)/crypto/asn1 3AM_CPPFLAGS += -I$(top_srcdir)/crypto/asn1
4AM_CFLAGS += -I$(top_srcdir)/crypto/evp 4AM_CPPFLAGS += -I$(top_srcdir)/crypto/evp
5AM_CFLAGS += -I$(top_srcdir)/crypto/modes 5AM_CPPFLAGS += -I$(top_srcdir)/crypto/modes
6 6
7lib_LTLIBRARIES = libcrypto.la 7lib_LTLIBRARIES = libcrypto.la
8 8
@@ -14,7 +14,8 @@ EXTRA_DIST += compat/strcasecmp.c
14 14
15libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@ -no-undefined 15libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@ -no-undefined
16libcrypto_la_LIBADD = libcompat.la libcompatnoopt.la 16libcrypto_la_LIBADD = libcompat.la libcompatnoopt.la
17libcrypto_la_CPPFLAGS = -DLIBRESSL_INTERNAL 17libcrypto_la_CPPFLAGS = $(AM_CPPFLAGS)
18libcrypto_la_CPPFLAGS += -DLIBRESSL_INTERNAL
18libcrypto_la_CPPFLAGS += -DOPENSSL_NO_HW_PADLOCK 19libcrypto_la_CPPFLAGS += -DOPENSSL_NO_HW_PADLOCK
19if OPENSSL_NO_ASM 20if OPENSSL_NO_ASM
20libcrypto_la_CPPFLAGS += -DOPENSSL_NO_ASM 21libcrypto_la_CPPFLAGS += -DOPENSSL_NO_ASM