Changeset f5b4fb9 in mainline for uspace/lib/libc/Makefile.toolchain


Ignore:
Timestamp:
2007-07-04T14:22:16Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36c9234
Parents:
e70bfa5
Message:

Allow HelenOS to be built by a native gcc on Solaris.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/Makefile.toolchain

    re70bfa5 rf5b4fb9  
    3838include $(LIBC_PREFIX)/arch/$(ARCH)/Makefile.inc
    3939
     40## Simple detection of the host system
     41#
     42HOST = $(shell uname)
     43
     44## On Solaris, some utilities have different names
     45#
     46ifeq ($(HOST),SunOS)
     47        BINUTILS_PREFIX = "g"
     48else
     49        BINUTILS_PREFIX = ""
     50endif
     51
    4052## Toolchain configuration
    4153#
     
    4355ifeq ($(COMPILER),gcc_native)
    4456        CC = gcc
    45         AS = as
    46         LD = ld
    47         AR = ar
    48         OBJCOPY = objcopy
    49         OBJDUMP = objdump
     57        AS = $(BINUTILS_PREFIX)as
     58        LD = $(BINUTILS_PREFIX)ld
     59        AR = $(BINUTILS_PREFIX)ar
     60        OBJCOPY = $(BINUTILS_PREFIX)objcopy
     61        OBJDUMP = $(BINUTILS_PREFIX)objdump
    5062endif
    5163
     
    6779        OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
    6880endif
     81
Note: See TracChangeset for help on using the changeset viewer.