diff options
Diffstat (limited to 'arch/um/Makefile')
-rw-r--r-- | arch/um/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index dfcc9eaafaa7..6a7a9f43cdef 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -56,17 +56,21 @@ include $(srctree)/$(ARCH_DIR)/Makefile-$(SUBARCH) | |||
56 | core-y += $(SUBARCH_CORE) | 56 | core-y += $(SUBARCH_CORE) |
57 | libs-y += $(SUBARCH_LIBS) | 57 | libs-y += $(SUBARCH_LIBS) |
58 | 58 | ||
59 | # -Derrno=kernel_errno - This turns all kernel references to errno into | 59 | # -Dvmap=kernel_vmap affects everything, and prevents anything from |
60 | # kernel_errno to separate them from the libc errno. This allows -fno-common | 60 | # referencing the libpcap.o symbol so named. |
61 | # in CFLAGS. Otherwise, it would cause ld to complain about the two different | ||
62 | # errnos. | ||
63 | 61 | ||
64 | CFLAGS += $(CFLAGS-y) -D__arch_um__ -DSUBARCH=\"$(SUBARCH)\" \ | 62 | CFLAGS += $(CFLAGS-y) -D__arch_um__ -DSUBARCH=\"$(SUBARCH)\" \ |
65 | $(ARCH_INCLUDE) $(MODE_INCLUDE) | 63 | $(ARCH_INCLUDE) $(MODE_INCLUDE) -Dvmap=kernel_vmap |
66 | 64 | ||
67 | USER_CFLAGS := $(patsubst -I%,,$(CFLAGS)) | 65 | USER_CFLAGS := $(patsubst -I%,,$(CFLAGS)) |
68 | USER_CFLAGS := $(patsubst -D__KERNEL__,,$(USER_CFLAGS)) $(ARCH_INCLUDE) \ | 66 | USER_CFLAGS := $(patsubst -D__KERNEL__,,$(USER_CFLAGS)) $(ARCH_INCLUDE) \ |
69 | $(MODE_INCLUDE) $(ARCH_USER_CFLAGS) | 67 | $(MODE_INCLUDE) $(ARCH_USER_CFLAGS) |
68 | |||
69 | # -Derrno=kernel_errno - This turns all kernel references to errno into | ||
70 | # kernel_errno to separate them from the libc errno. This allows -fno-common | ||
71 | # in CFLAGS. Otherwise, it would cause ld to complain about the two different | ||
72 | # errnos. | ||
73 | |||
70 | CFLAGS += -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask | 74 | CFLAGS += -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask |
71 | CFLAGS += $(call cc-option,-fno-unit-at-a-time,) | 75 | CFLAGS += $(call cc-option,-fno-unit-at-a-time,) |
72 | 76 | ||