VirtualBox

Changeset 64598 in vbox for trunk


Ignore:
Timestamp:
Nov 8, 2016 3:37:44 PM (8 years ago)
Author:
vboxsync
Message:

Config.kmk: adapt the gcc version check to stubborn gcc versions returning only the major version on 'gcc -dumpversion'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r64544 r64598  
    24722472 # The reason for this hack is that the windows kmk_ash cannot deal with $((1+1)).
    24732473 # Some versions of gcc (e.g. openSUSE11) return only major.minor on `gcc -dumpversion`.
     2474 # gcc-5 of openSUSE42.1 only returns the major version on `gcc -dumpversion`!
    24742475 VBOX_GCC_VERSION = $(shell \
    2475     $(1) -dumpversion | $(SED_EXT) 's|\([0-9]\)\.\([0-9]\)\.\{0,1\}\([0-9]\{0,1\}\).*|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, \2), $$(firstword \3 0))|' )
     2476    $(1) -dumpversion | $(SED_EXT) 's|\([0-9]\)\.\{0,1\}\([0-9]\{0,1\}\)\.\{0,1\}\([0-9]\{0,1\}\).*|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, $$(firstword \2 0)), $$(firstword \3 0))|' )
    24762477endif
    24772478
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