Changeset f5b4fb9 in mainline for kernel/Makefile


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
  • kernel/Makefile

    re70bfa5 rf5b4fb9  
    133133endif
    134134
     135## Simple detection for the type of the host system
     136#
     137HOST = $(shell uname)
     138
     139## On Solaris, some utilities have slightly different names
     140#
     141ifeq ($(HOST),SunOS)
     142        BINUTILS_PREFIX = "g"
     143else
     144        BINUTILS_PREFIX = ""
     145endif
     146
    135147## Toolchain configuration
    136148#
     
    139151        CC = gcc
    140152        GCC = gcc
    141         AS = as
    142         LD = ld
    143         OBJCOPY = objcopy
    144         OBJDUMP = objdump
     153        AS = $(BINUTILS_PREFIX)as
     154        LD = $(BINUTILS_PREFIX)ld
     155        OBJCOPY = $(BINUTILS_PREFIX)objcopy
     156        OBJDUMP = $(BINUTILS_PREFIX)objdump
    145157        LIBDIR = /usr/lib
    146158        CFLAGS = $(GCC_CFLAGS)
     
    161173        CC = suncc
    162174        GCC = gcc
    163         AS = as
    164         LD = ld
    165         OBJCOPY = objcopy
    166         OBJDUMP = objdump
     175        AS = $(BINUTILS_PREFIX)as
     176        LD = $(BINUTILS_PREFIX)ld
     177        OBJCOPY = $(BINUTILS_PREFIX)objcopy
     178        OBJDUMP = $(BINUTILS_PREFIX)objdump
    167179        LIBDIR = /usr/lib
    168180        CFLAGS = $(SUNCC_CFLAGS)
Note: See TracChangeset for help on using the changeset viewer.