Lines 35-41
Link Here
|
35 |
|
35 |
|
36 |
|
36 |
|
37 |
#MACHINE_SPECIFIC_FLAGS = -Wno-long-double |
37 |
#MACHINE_SPECIFIC_FLAGS = -Wno-long-double |
38 |
MACHINE_SPECIFIC_FLAGS = -ffast-math |
38 |
MACHINE_SPECIFIC_FLAGS = $(CXXFLAGS) |
39 |
|
39 |
|
40 |
#G4 = FALSE |
40 |
#G4 = FALSE |
41 |
#ifeq ($(G4),TRUE) |
41 |
#ifeq ($(G4),TRUE) |
Lines 80-103
Link Here
|
80 |
|
80 |
|
81 |
#For Mac os x we omit shared library options |
81 |
#For Mac os x we omit shared library options |
82 |
|
82 |
|
83 |
ifeq ($(OS_NAME),Darwin) |
|
|
84 |
LDFLAGS2 = |
85 |
else |
86 |
LDFLAGS1 = -Xlinker -export-dynamic #not sure why pari calls these when linking but on the web I found |
87 |
#'Libtool provides the `-export-dynamic' link flag (see section Link mode), which does this declaration. |
88 |
#You need to use this flag if you are linking a shared library that will be dlopened' |
89 |
#see notes below |
90 |
#ifeq ($(PARI_DEFINE),-DINCLUDE_PARI) |
91 |
LDFLAGS2 = $(LDFLAGS1) -Xlinker -rpath -Xlinker $(LOCATION_PARI_LIBRARY) |
92 |
#else |
93 |
# LDFLAGS2 = $(LDFLAGS1) |
94 |
#endif |
95 |
endif |
96 |
|
97 |
ifeq ($(PARI_DEFINE),-DINCLUDE_PARI) |
83 |
ifeq ($(PARI_DEFINE),-DINCLUDE_PARI) |
98 |
LDFLAGS = $(LDFLAGS2) -L$(LOCATION_PARI_LIBRARY) -lpari |
84 |
LDFLAGS = -L$(LOCATION_PARI_LIBRARY) -lpari |
99 |
else |
85 |
else |
100 |
LDFLAGS = $(LDFLAGS2) |
86 |
LDFLAGS = |
101 |
endif |
87 |
endif |
102 |
|
88 |
|
103 |
|
89 |
|