move all x86 specific stuff into a CPU_ARCH guarded section, and if NETBSD_ELF is defined, don't build with GLOBALS_NEED_UNDERSCORE

This commit is contained in:
toshok%hungry.com 1999-11-27 23:48:29 +00:00
Родитель dd59ce6115
Коммит d0c9099ffc
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -51,11 +51,12 @@ SYS_INCLUDES += -I$(subst libgcc.a,include, \
ifeq ($(CPU_ARCH),x86)
DEPENDFLAGS += -D__i386__
OS_REL_CFLAGS = -mno-486 -Di386
endif
OS_REL_CFLAGS = -mno-486 -Di386
ifndef NETBSD_ELF
OS_CFLAGS = -DGLOBALS_NEED_UNDERSCORE
endif
OS_CFLAGS += $(DSO_CFLAGS) $(OS_REL_CFLAGS) -DNETBSD -ansi -Wall -pipe -DHAVE_STRERROR -DHAVE_BSD_FLOCK
OS_CXXFLAGS = $(OS_CFLAGS)