diff options
| author | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2015-10-11 16:46:55 -0700 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2015-10-14 16:33:39 -0500 |
| commit | 448645d47991e36337c11dff0271be77218e82c7 (patch) | |
| tree | 13b11ef192d3ccc1206bf7119624716457b44591 /crypto | |
| parent | 9afc452761c630816e443b9e945f3db2259afbb9 (diff) | |
| download | portable-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>
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/Makefile.am | 9 |
1 files changed, 5 insertions, 4 deletions
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 @@ | |||
| 1 | include $(top_srcdir)/Makefile.am.common | 1 | include $(top_srcdir)/Makefile.am.common |
| 2 | 2 | ||
| 3 | AM_CFLAGS += -I$(top_srcdir)/crypto/asn1 | 3 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/asn1 |
| 4 | AM_CFLAGS += -I$(top_srcdir)/crypto/evp | 4 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/evp |
| 5 | AM_CFLAGS += -I$(top_srcdir)/crypto/modes | 5 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/modes |
| 6 | 6 | ||
| 7 | lib_LTLIBRARIES = libcrypto.la | 7 | lib_LTLIBRARIES = libcrypto.la |
| 8 | 8 | ||
| @@ -14,7 +14,8 @@ EXTRA_DIST += compat/strcasecmp.c | |||
| 14 | 14 | ||
| 15 | libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@ -no-undefined | 15 | libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@ -no-undefined |
| 16 | libcrypto_la_LIBADD = libcompat.la libcompatnoopt.la | 16 | libcrypto_la_LIBADD = libcompat.la libcompatnoopt.la |
| 17 | libcrypto_la_CPPFLAGS = -DLIBRESSL_INTERNAL | 17 | libcrypto_la_CPPFLAGS = $(AM_CPPFLAGS) |
| 18 | libcrypto_la_CPPFLAGS += -DLIBRESSL_INTERNAL | ||
| 18 | libcrypto_la_CPPFLAGS += -DOPENSSL_NO_HW_PADLOCK | 19 | libcrypto_la_CPPFLAGS += -DOPENSSL_NO_HW_PADLOCK |
| 19 | if OPENSSL_NO_ASM | 20 | if OPENSSL_NO_ASM |
| 20 | libcrypto_la_CPPFLAGS += -DOPENSSL_NO_ASM | 21 | libcrypto_la_CPPFLAGS += -DOPENSSL_NO_ASM |
