forked from TrueBitFoundation/wasm-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.ntl.patch
45 lines (45 loc) · 1.31 KB
/
makefile.ntl.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
10c10,12
< CXX=g++
---
> CXX=em++
> CXXCC=g++
> GMPTARGET=$(HOME)/opt
14c16
< CXXFLAGS=-g -O2
---
> CXXFLAGS=-g -O2
18a21,22
> NTL_LONG_LONG_TYPE = unsigned long long
> NTL_ULONG_TO_LONG = unsigned long long
20,21c24
<
< AR=ar
---
> AR=emar
46c49
< DEF_PREFIX=/home/sme001/opt
---
> DEF_PREFIX=$(HOME)/opt
120c123
< WIZARD=on
---
> WIZARD=off
309,310c312,315
< $(COMPILE) MakeDescAux.cpp
< $(LINK) -o MakeDesc MakeDesc.cpp MakeDescAux.o $(LDLIBS)
---
> # $(COMPILE) MakeDescAux.cpp
> # $(LINK) -o MakeDesc MakeDesc.cpp MakeDescAux.o $(LDLIBS)
> $(CXCC) $(NTL_INCLUDE) $(CPPFLAGS) $(CFLAGS) -c MakeDescAux.cpp
> $(CXCC) $(NTL_INCLUDE) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o MakeDesc MakeDesc.cpp MakeDescAux.o $(LDLIBS)
319c324,325
< sh MakeGetTime "$(LINK)" "$(LDLIBS)"
---
> # sh MakeGetTime "$(LINK)" "$(LDLIBS)"
> sh MakeGetTime "g++ $(NTL_INCLUDE) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)" "$(LDLIBS)"
333c339,341
< $(LINK) $(GMP_OPT_INCDIR) -o gen_gmp_aux gen_gmp_aux.cpp $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(LDLIBS)
---
> # $(LINK) $(GMP_OPT_INCDIR) -o gen_gmp_aux gen_gmp_aux.cpp $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(LDLIBS)
> # ./gen_lip_gmp_aux > lip_gmp_aux_impl.h
> $(CXXCC) $(NTL_INCLUDE) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -I$(HOME)/opt/include -o gen_gmp_aux gen_gmp_aux.cpp -L/usr/lib/x86_64-linux-gnu/ $(GMP_OPT_LIB) $(LDLIBS)