Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset bfdb7c63 in mainline


Ignore:
Timestamp:
2017-10-09T20:03:36Z (4 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master
Children:
b1018a29
Parents:
02667d9
Message:

Change amd64 target to amd64-unknown-elf.

This fixes clang build on amd64.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tools/autotool.py

    r02667d9 rbfdb7c63  
    234234        if (config['PLATFORM'] == "amd64"):
    235235                platform = config['PLATFORM']
    236                 gnu_target = "amd64-linux-gnu"
     236                gnu_target = "amd64-unknown-elf"
    237237                helenos_target = "amd64-helenos"
    238238       
  • tools/toolchain.sh

    r02667d9 rbfdb7c63  
    359359        case "$1" in
    360360                "amd64")
    361                         LINUX_TARGET="amd64-linux-gnu"
     361                        LINUX_TARGET="amd64-unknown-elf"
    362362                        HELENOS_TARGET="amd64-helenos"
    363363                        ;;
  • uspace/lib/c/arch/amd64/Makefile.common

    r02667d9 rbfdb7c63  
    2727#
    2828
    29 COMMON_CFLAGS += -mno-tls-direct-seg-refs -fno-omit-frame-pointer
     29COMMON_CFLAGS += -fno-omit-frame-pointer
     30
     31# XXX: clang doesn't support this flag, but the optimization is OS-specific,
     32#      so it isn't used for amd64-unknown-elf target.
     33GCC_CFLAGS += -mno-tls-direct-seg-refs
     34
    3035LFLAGS += --gc-sections
    3136
Note: See TracChangeset for help on using the changeset viewer.