Blame project/arch.mk

9fd191
ifeq ($(OS),midipix)
9fd191
d29346
CFLAGS_CONFIG  += -I\$(PROJECT_DIR)/include
d29346
9fd191
src/env/__libc_start_main.lo: CFLAGS_SHARED += -USHARED
9fd191
ddbccb
SHARED_OBJS    += crt/$(ARCH)/crtn.o
ddbccb
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_dlstart
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__syscall_vtbl
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__ldso_vtbl
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__psx_vtbl
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__teb_sys_idx
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__teb_libc_idx
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__vm_lock_impl
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=__vm_unlock_impl
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_feof_unlocked
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_ferror_unlocked
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_getc
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_getc_unlocked
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_putc
fb33f1
LDFLAGS_CONFIG += -Wl,--exclude-symbols=_IO_putc_unlocked
e20baa
LDFLAGS_CONFIG += -Wl,--exclude-symbols=___errno_location
fb33f1
d29346
TARGET_SYS_HEADERS = \
d29346
	$(PROJECT_DIR)/include/sys/unwind.h \
d29346
d29346
install-headers: install-target-sys-headers
d29346
7089bc
else
7089bc
7089bc
CFLAGS_CONFIG  += -fno-asynchronous-unwind-tables
7089bc
9fd191
endif
d29346
d29346
install-target-sys-headers: $(TARGET_SYS_HEADERS)
d29346
	mkdir -p $(DESTDIR)$(INCLUDEDIR)/sys
d29346
	cp    -p $(TARGET_SYS_HEADERS)       $(DESTDIR)$(INCLUDEDIR)/sys