VirtualBox

Changeset 2246 in kBuild


Ignore:
Timestamp:
Jan 18, 2009 2:08:37 AM (16 years ago)
Author:
bird
Message:

GXX32,GCC32,GXX64,GCC64: FreeBSD ld doesn't do standard elf_<arch> but elf_<arch>_fbsd. (sysmod linking)

Location:
trunk/kBuild/tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/GCC32.kmk

    r2243 r2246  
    4747TOOL_GCC32_LDFLAGS.dll ?= $(TOOL_GCC32_LDFLAGS.$(KBUILD_TARGET))
    4848endif
    49 TOOL_GCC32_LDFLAGS.sysmod ?= -r -m elf_i386
     49TOOL_GCC32_LDFLAGS.sysmod ?= -r -m elf_i386$(if-expr "$(KBUILD_TARGET)" == "freebsd",_fbsd,)
    5050TOOL_GCC32_LD_SONAME ?= -Wl,-soname=$(firstword $($(1)_SONAME.$(KBUILD_TARGET).$(KBUILD_TYPE)) $($(1)_SONAME.$(KBUILD_TARGET)) $($(1)_SONAME.$(KBUILD_TYPE)) $($(1)_SONAME) $(notdir $(2)))
    5151ifeq ($(KBUILD_TARGET),os2)
  • trunk/kBuild/tools/GCC64.kmk

    r2243 r2246  
    4747TOOL_GCC64_LDFLAGS.dll ?= $(TOOL_GCC64_LDFLAGS.$(KBUILD_TARGET))
    4848endif
    49 TOOL_GCC64_LDFLAGS.sysmod ?= -r -m elf_x86_64
     49TOOL_GCC64_LDFLAGS.sysmod ?= -r -m elf_x86_64$(if-expr "$(KBUILD_TARGET)" == "freebsd",_fbsd,)
    5050TOOL_GCC64_LD_SONAME ?= -Wl,-soname=$(firstword $($(1)_SONAME.$(KBUILD_TARGET).$(KBUILD_TYPE)) $($(1)_SONAME.$(KBUILD_TARGET)) $($(1)_SONAME.$(KBUILD_TYPE)) $($(1)_SONAME) $(notdir $(2)))
    5151ifeq ($(KBUILD_TARGET),os2)
  • trunk/kBuild/tools/GXX32.kmk

    r2243 r2246  
    4747TOOL_GXX32_LDFLAGS.dll ?= $(TOOL_GXX32_LDFLAGS.$(KBUILD_TARGET))
    4848endif
    49 TOOL_GXX32_LDFLAGS.sysmod ?= -r -m elf_i386
     49TOOL_GXX32_LDFLAGS.sysmod ?= -r -m elf_i386$(if-expr "$(KBUILD_TARGET)" == "freebsd",_fbsd,)
    5050TOOL_GXX32_LD_SONAME ?= -Wl,-soname=$(firstword $($(1)_SONAME.$(KBUILD_TARGET).$(KBUILD_TYPE)) $($(1)_SONAME.$(KBUILD_TARGET)) $($(1)_SONAME.$(KBUILD_TYPE)) $($(1)_SONAME) $(notdir $(2)))
    5151ifeq ($(KBUILD_TARGET),os2)
  • trunk/kBuild/tools/GXX64.kmk

    r2243 r2246  
    4747TOOL_GXX64_LDFLAGS.dll ?= $(TOOL_GXX64_LDFLAGS.$(KBUILD_TARGET))
    4848endif
    49 TOOL_GXX64_LDFLAGS.sysmod ?= -r -m elf_x86_64
     49TOOL_GXX64_LDFLAGS.sysmod ?= -r -m elf_x86_64$(if-expr "$(KBUILD_TARGET)" == "freebsd",_fbsd,)
    5050TOOL_GXX64_LD_SONAME ?= -Wl,-soname=$(firstword $($(1)_SONAME.$(KBUILD_TARGET).$(KBUILD_TYPE)) $($(1)_SONAME.$(KBUILD_TARGET)) $($(1)_SONAME.$(KBUILD_TYPE)) $($(1)_SONAME) $(notdir $(2)))
    5151ifeq ($(KBUILD_TARGET),os2)
  • trunk/kBuild/tools/TARGZ.kmk

    r2243 r2246  
    6565TOOL_TARGZ_UNPACK_DEPEND =
    6666TOOL_TARGZ_UNPACK_DEPORD =
     67ifeq ($(KBUILD_HOST),win) # hacking with buggy unxutils on windows. it doesn't like driver letters.
     68define TOOL_TARGZ_UNPACK_CMDS
     69        $(QUIET)$(TOOL_TARGZ_UNPACK) -x $(flags) -C $(subst G:,,$(inst)) -f $(archive)
     70        $(QUIET)$(TOOL_TARGZ_UNPACK) -t $(flags) -f $(archive) > $(out)
     71endef
     72else
    6773define TOOL_TARGZ_UNPACK_CMDS
    6874        $(QUIET)$(TOOL_TARGZ_UNPACK) -x $(flags) -C $(inst) -f $(archive)
    6975        $(QUIET)$(TOOL_TARGZ_UNPACK) -t $(flags) -f $(archive) > $(out)
    7076endef
     77endif
    7178
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette