lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | # The Sparc `long double' is a distinct type we support. |
| 2 | long-double-fcts = yes |
| 3 | |
| 4 | pie-ccflag = -fPIE |
| 5 | |
| 6 | ifeq ($(subdir),debug) |
| 7 | CFLAGS-backtrace.c += -funwind-tables |
| 8 | endif |
| 9 | |
| 10 | ifeq ($(subdir),gmon) |
| 11 | sysdep_routines += sparc-mcount |
| 12 | endif |
| 13 | |
| 14 | ifeq ($(subdir),db2) |
| 15 | CPPFLAGS += -DHAVE_SPINLOCKS=1 -DHAVE_ASSEM_SPARC_GCC=1 |
| 16 | endif |
| 17 | |
| 18 | ifeq ($(subdir),csu) |
| 19 | CPPFLAGS-crti.S += -fPIC |
| 20 | CPPFLAGS-crtn.S += -fPIC |
| 21 | endif |
| 22 | |
| 23 | # The assembler on SPARC needs the -fPIC flag even when it's assembler code. |
| 24 | ASFLAGS-.os += -fPIC |