aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-09-08 11:29:01 -0700
committerSean Whitton <spwhitton@spwhitton.name>2018-09-08 11:29:01 -0700
commite25022026478f56c5f0a905681eb934535567301 (patch)
treede3b8fc333bf2756a88e6bc962f73cd3b8f8bd29
parentaba9ba3a6cd0c087a9d03866f652dcab61eee956 (diff)
downloadzxcvbn-c-e25022026478f56c5f0a905681eb934535567301.tar.gz
cross
=================================================================== Gbp-Pq: Name cross.patch
-rw-r--r--makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/makefile b/makefile
index 3b1b519..0957b06 100644
--- a/makefile
+++ b/makefile
@@ -5,6 +5,7 @@ CXXFLAGS ?= -O2 -Wall -Wextra
CC ?= gcc
AR ?= ar
CXX ?= g++
+CXX_FOR_BUILD ?= $(CXX)
# need zxcvbn.h prior to package installation
CPPFLAGS += -I.
@@ -57,7 +58,7 @@ dict-crc.h: dictgen $(WORDS)
./dictgen -b -o zxcvbn.dict -h dict-crc.h $(WORDS)
dictgen: dict-generate.cpp makefile
- $(CXX) $(CPPFLAGS) -std=c++11 $(CXXFLAGS) \
+ $(CXX_FOR_BUILD) $(CPPFLAGS) -std=c++11 $(CXXFLAGS) \
-o dictgen dict-generate.cpp $(LDFLAGS)
test-c++inline: test.c zxcvbn-c++inline.o