Changeset 1570759b in mainline
- Timestamp:
- 2013-03-10T22:00:33Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 26bcc658
- Parents:
- 39ba6d5
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r39ba6d5 r1570759b 100 100 -Werror-implicit-function-declaration -wd170 101 101 102 # clang does not support following options but I am not sure whether 103 # something won't break because of that: 104 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 102 105 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 103 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 104 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 106 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 105 107 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 106 108 -Werror-implicit-function-declaration -Wwrite-strings \ 107 -pipe - arch $(CLANG_ARCH)109 -pipe -target $(CLANG_TARGET) 108 110 109 111 ifeq ($(CONFIG_DEBUG),y) … … 387 389 388 390 $(LINK): $(LINK).in $(DEPEND) 389 $( GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@391 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@ 390 392 391 393 %.o: %.S $(DEPEND) -
kernel/arch/amd64/Makefile.inc
r39ba6d5 r1570759b 31 31 BFD = binary 32 32 CLANG_ARCH = x86_64 33 CLANG_TARGET = x86_64-unknown-linux 33 34 34 35 FPU_NO_CFLAGS = -mno-sse -mno-sse2 … … 36 37 GCC_CFLAGS += $(CMN1) 37 38 ICC_CFLAGS += $(CMN1) 39 CLANG_CFLAGS += $(CMN1) 38 40 39 41 BITS = 64 -
uspace/Makefile.common
r39ba6d5 r1570759b 198 198 -pipe -g -D__$(ENDIANESS)__ 199 199 200 # clang does not support following options but I am not sure whether 201 # something won't break because of that: 202 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 200 203 CLANG_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 201 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 202 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 204 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 203 205 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 204 206 -Werror-implicit-function-declaration -Wwrite-strings \ 205 -pipe -g - arch $(CLANG_ARCH) -D__$(ENDIANESS)__207 -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 206 208 207 209 LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__ … … 251 253 ifeq ($(COMPILER),clang) 252 254 CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 255 GCC_CFLAGS += $(EXTRA_CFLAGS) 253 256 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 254 257 endif … … 303 306 304 307 %.o: %.S $(DEPEND) 305 $( CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@308 $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@ 306 309 ifeq ($(PRECHECK),y) 307 310 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ -
uspace/lib/c/Makefile
r39ba6d5 r1570759b 161 161 162 162 $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in 163 $( GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@163 $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@ 164 164 165 165 $(LIBC_PREFIX)/arch/$(UARCH)/_link-loader.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in 166 $( GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DLOADER -E -x c $< | grep -v "^\#" > $@166 $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DLOADER -E -x c $< | grep -v "^\#" > $@ 167 167 168 168 $(LIBC_PREFIX)/arch/$(UARCH)/_link-shlib.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in 169 $( GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DSHLIB -E -x c $< | grep -v "^\#" > $@169 $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DSHLIB -E -x c $< | grep -v "^\#" > $@ 170 170 171 171 $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in 172 $( GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DDLEXE -E -x c $< | grep -v "^\#" > $@172 $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DDLEXE -E -x c $< | grep -v "^\#" > $@ 173 173 174 174 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) -
uspace/lib/c/arch/amd64/Makefile.common
r39ba6d5 r1570759b 28 28 29 29 CLANG_ARCH = x86_64 30 CLANG_TARGET = x86_64-unknown-linux 30 31 GCC_CFLAGS += -fno-omit-frame-pointer 32 CLANG_CFLAGS += -fno-omit-frame-pointer 31 33 32 34 ENDIANESS = LE
Note:
See TracChangeset
for help on using the changeset viewer.