Ignore:
Timestamp:
Nov 7, 2007, 5:02:56 PM (18 years ago)
Author:
bird
Message:

Don't basename the library file, just strip leading 'lib'.

File:
1 edited

Legend:

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

    r1098 r1259  
    245245                $(filter %.def, $(othersrc))\
    246246                $(foreach p,$(libpath), -L$(p))\
    247                 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))
     247                $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))
    248248endef
    249249
     
    273273                $(filter %.def, $(othersrc))\
    274274                $(foreach p,$(libpath), -L$(p))\
    275                 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))
     275                $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))
    276276endef
    277277
    278278
    279279## Link system module (windows aka driver, linux aka kernel module)
    280 # This tool target might not work everywhere, but is provided for the 
     280# This tool target might not work everywhere, but is provided for the
    281281# platforms where it works (Solaris, etc).
    282282#
     
    304304                $(filter %.def, $(othersrc))\
    305305                $(foreach p,$(libpath), -L$(p))\
    306                 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))\
     306                $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\
    307307                $(call TOOL_GCC3PLAIN_LD_SYSMOD_MAP.$(bld_trg),$(outbase).map)
    308308endef
Note: See TracChangeset for help on using the changeset viewer.