ifeq ($(subdir),misc)
sysdep_headers += regdef.h fpregdef.h sys/regdef.h sys/fpregdef.h \
		  sys/asm.h sgidefs.h
endif

ifeq ($(subdir),setjmp)
sysdep_routines += setjmp_aux
endif

ifeq ($(subdir),rt)
librt-sysdep_routines += rt-sysdep
endif

# gcc enables -funwind-tables by default
ifeq ($(subdir),csu)
CFLAGS-initfini.s += -fno-unwind-tables
endif

# generated .eh_frame sections are writable, though
# the relocations are generally removed by linker; this conflicts with
# __EH_FRAME_BEGIN__ and __FRAME_END__.
ifeq ($(subdir),elf)
CFLAGS-soinit.c += -fno-unwind-tables
CFLAGS-sofini.c += -fno-unwind-tables
endif

ASFLAGS-.os += $(pic-ccflag)

ifeq ($(subdir),debug)
CFLAGS-backtrace.c += -funwind-tables
CFLAGS-tst-backtrace2.c += -funwind-tables
CFLAGS-tst-backtrace3.c += -funwind-tables
endif

ifeq ($(subdir),nptl)
CFLAGS-pt-initfini.s += -fno-unwind-tables
endif
