Lines 1-5
Link Here
|
1 |
--- makefile.orig 2013-11-06 15:26:24.000000000 -0500 |
1 |
--- makefile.orig 2013-11-06 20:26:24 UTC |
2 |
+++ makefile 2014-08-29 10:51:57.000000000 -0500 |
2 |
+++ makefile |
3 |
@@ -11,7 +11,7 @@ |
3 |
@@ -11,7 +11,7 @@ |
4 |
# CXX should be set to the name of your favorite C++ compiler. |
4 |
# CXX should be set to the name of your favorite C++ compiler. |
5 |
# =========================================================== |
5 |
# =========================================================== |
Lines 9-15
Link Here
|
9 |
#CXX = icpc |
9 |
#CXX = icpc |
10 |
#CXX = CC |
10 |
#CXX = CC |
11 |
|
11 |
|
12 |
@@ -19,7 +19,7 @@ |
12 |
@@ -19,7 +19,7 @@ CXX = g++ |
13 |
# -O2, -O3 ... to find the best optimization level. |
13 |
# -O2, -O3 ... to find the best optimization level. |
14 |
# =================================================================== |
14 |
# =================================================================== |
15 |
|
15 |
|
Lines 18-24
Link Here
|
18 |
|
18 |
|
19 |
# PREDCXXFLAGS is for compiling J. Shewchuk's predicates. |
19 |
# PREDCXXFLAGS is for compiling J. Shewchuk's predicates. |
20 |
|
20 |
|
21 |
@@ -36,7 +36,7 @@ |
21 |
@@ -36,7 +36,7 @@ PREDCXXFLAGS = -O0 |
22 |
# down the speed of TetGen. They can be skipped by define the -DNDEBUG |
22 |
# down the speed of TetGen. They can be skipped by define the -DNDEBUG |
23 |
# switch. |
23 |
# switch. |
24 |
|
24 |
|
Lines 27-29
Link Here
|
27 |
|
27 |
|
28 |
# RM should be set to the name of your favorite rm (file deletion program). |
28 |
# RM should be set to the name of your favorite rm (file deletion program). |
29 |
|
29 |
|
|
|
30 |
@@ -45,14 +45,14 @@ RM = /bin/rm |
31 |
# The action starts here. |
32 |
|
33 |
tetgen: tetgen.cxx predicates.o |
34 |
- $(CXX) $(CXXFLAGS) $(SWITCHES) -o tetgen tetgen.cxx predicates.o -lm |
35 |
+ $(CXX) $(CXXFLAGS) $(SWITCHES) -o tetgen tetgen.cxx predicates.o -lm -fPIC |
36 |
|
37 |
tetlib: tetgen.cxx predicates.o |
38 |
- $(CXX) $(CXXFLAGS) $(SWITCHES) -DTETLIBRARY -c tetgen.cxx |
39 |
+ $(CXX) $(CXXFLAGS) $(SWITCHES) -DTETLIBRARY -c tetgen.cxx -fPIC |
40 |
ar r libtet.a tetgen.o predicates.o |
41 |
|
42 |
predicates.o: predicates.cxx |
43 |
- $(CXX) $(PREDCXXFLAGS) -c predicates.cxx |
44 |
+ $(CXX) $(PREDCXXFLAGS) -c predicates.cxx -fPIC |
45 |
|
46 |
clean: |
47 |
$(RM) *.o *.a tetgen *~ |