mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 20:23:41 +08:00
30 lines
951 B
Diff
30 lines
951 B
Diff
|
diff --git a/cipher/Makefile.am b/cipher/Makefile.am
|
||
|
index 264b3d3..254d946 100644
|
||
|
--- a/cipher/Makefile.am
|
||
|
+++ b/cipher/Makefile.am
|
||
|
@@ -19,6 +19,13 @@
|
||
|
|
||
|
# Process this file with automake to produce Makefile.in
|
||
|
|
||
|
+# Building host tools for native triplet, or not at all
|
||
|
+CPPFLAGS_FOR_BUILD = $(CPPFLAGS)
|
||
|
+CFLAGS_FOR_BUILD = $(CFLAGS)
|
||
|
+LDFLAGS_FOR_BUILD = $(LDFLAGS)
|
||
|
+# Using native tools, either this build or from host triplet
|
||
|
+HOST_TOOLS_PREFIX ?= .
|
||
|
+
|
||
|
# Need to include ../src in addition to top_srcdir because gcrypt.h is
|
||
|
# a built header.
|
||
|
AM_CPPFLAGS = -I../src -I$(top_srcdir)/src -I../mpi -I$(top_srcdir)/mpi
|
||
|
@@ -144,8 +151,8 @@ EXTRA_libcipher_la_SOURCES = \
|
||
|
blake2b-amd64-avx2.S blake2s-amd64-avx.S
|
||
|
|
||
|
gost28147.lo: gost-sb.h
|
||
|
-gost-sb.h: gost-s-box
|
||
|
- ./gost-s-box $@
|
||
|
+gost-sb.h: $(HOST_TOOLS_PREFIX)/gost-s-box
|
||
|
+ $(HOST_TOOLS_PREFIX)/gost-s-box $@
|
||
|
|
||
|
gost-s-box: gost-s-box.c
|
||
|
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
|