summaryrefslogtreecommitdiff
path: root/math/tomsfastmath/files/patch-makefile
blob: 86db05cff97af7ba60db72d131efbed9cd16ebd7 (plain) (blame)
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
--- makefile.orig	2017-04-04 10:24:49 UTC
+++ makefile
@@ -10,12 +10,9 @@ ifndef PREFIX
   PREFIX=
 endif
 
-ifeq ($(CC),cc)
-  CC = $(PREFIX)gcc
-endif
-LD=$(PREFIX)ld
-AR=$(PREFIX)ar
-RANLIB=$(PREFIX)ranlib
+LD=ld
+AR=ar
+RANLIB=ranlib
 
 ifndef MAKE
    MAKE=make
@@ -39,7 +36,7 @@ CFLAGS += -g3
 else
 ifndef IGNORE_SPEED
 
-CFLAGS += -O3 -funroll-loops
+CFLAGS += -funroll-loops
 
 #profiling
 #PROF=-pg -g
@@ -83,11 +80,11 @@ HEADERS=src/headers/tfm_private.h $(HEAD
 #END_INS
 
 ifndef LIBPATH
-   LIBPATH=/usr/lib
+   LIBPATH=${PREFIX}/lib
 endif
 
 ifndef INCPATH
-   INCPATH=/usr/include
+   INCPATH=${PREFIX}/include
 endif
 
 ifndef INSTALL_GROUP