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-15 15:23:44 -0500
commit97478266cab5996867cfeb6478feb862b9e5b944 (patch)
tree3f3929e2b8cc6b6c1bad9b98f451c11577809a05
parent0e7a252d0d4ec352de5109271c57fbf324a90d43 (diff)
downloadportable-97478266cab5996867cfeb6478feb862b9e5b944.tar.gz
portable-97478266cab5996867cfeb6478feb862b9e5b944.tar.bz2
portable-97478266cab5996867cfeb6478feb862b9e5b944.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 39d50c4..e1ced3c 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