Commit Graph

11 Commits

Author SHA1 Message Date
Charlie Jenkins
57b14649b5 Allow ARCH to be overriden in Makefile
To support changing compilers which is particularly useful for cross
compilation, use the defined ARCH if it exists.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
2025-01-24 14:11:46 -08:00
Charlie Jenkins
7d3c7595d2 Allow CC to be overriden in Makefile
To support changing compilers which is particularly useful for cross
compilation, use the defined CC if it exists.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
2025-01-17 16:35:53 -08:00
sunmin89
a07fcc0326 Add riscv64 support
'-mabi=lp64d’ means that ‘long’ and pointers are 64-bit (implicitly defining ‘int’ to be 32-bit), and that floating-point values up to 64 bits wide are passed in F registers.

[1] https://gcc.gnu.org/onlinedocs/gcc/RISC-V-Options.html

Co-authored-by: Glenn Strauss <gstrauss@gluelogic.com>

github: closes 
2023-04-11 16:42:04 -04:00
Harish
519c2b47b1 Fix option -march with -mcpu for POWER architecture
In Makefile, -mcpu option is added for POWER architecture instead
of -march

Signed-off-by: Harish <harish@linux.vnet.ibm.com>
2018-01-29 11:36:26 +05:30
Harish
5031788bb2 Handle POWER architecture for unsupported option
-march=native is not supported on power architectures. Handled it
in this patch as to skip on POWER

Signed-off-by: Harish <harish@linux.vnet.ibm.com>
2018-01-19 14:41:49 +05:30
t2-kob
c17e1779ea Add change gcc options via Enviroment arguments. 2018-01-12 14:15:12 +09:00
Glenn Strauss
aeed2ba662 allow CFLAGS, LDFLAGS initial values from env
e.g. $ CFLAGS="-fPIE" make

github: closes 
2016-10-27 22:13:20 -04:00
Glenn Strauss
cc8b49ff8e prefer gettimeofday() timing over of rusage()
github: fixes , fixes , fixes 
2016-09-17 19:58:18 -04:00
Glenn Strauss
7f1ddef4e8 Makefile modernization
update optimization flags
use Makefile patterns to reduce duplication
remove -ansi flag (increase portability)
add missing dependencies
2016-03-24 15:48:15 -04:00
kdlucas
7df8999264 Rev'd to 5.1.3 to add fix for parallel job compilation. 2011-01-14 17:30:40 +00:00
headstay
f53eadaa3e Version 5.1.2. 2009-10-28 01:52:39 +00:00