Changeset 2560 for trunk/kBuild


Ignore:
Timestamp:
Feb 26, 2012, 6:54:10 PM (13 years ago)
Author:
bird
Message:

LIBSDL.kmk: Use the KBUILD_LIB_SEARCH_PATHS to locate libSDL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/sdks/LIBSDL.kmk

    r2413 r2560  
    5858
    5959  ifeq ($(PATH_SDK_LIBSDL),)
    60    # Search in the typical unix places.
    61    ifeq ($(filter-out %64,$(KBUILD_TARGET_ARCH)),)
    62     PATH_SDK_LIBSDL := $(firstword $(wildcard \
    63         /lib64/libSDL.* \
    64         /lib/libSDL.* \
    65         /usr/lib64/libSDL.* \
    66         /usr/lib/libSDL.* \
    67         /usr/local/lib64/libSDL.* \
    68         /usr/local/lib/libSDL.* \
    69         /opt/lib64/libSDL.* \
    70         /opt/lib/libSDL.* \
    71         /opt/local/lib64/libSDL.* \
    72         /opt/local/lib/libSDL.* \
    73         /sw/lib64/libSDL.* \
    74         /sw/lib/libSDL.* \
    75         ) )
    76    else
    77     PATH_SDK_LIBSDL := $(firstword $(wildcard \
    78         /lib32/libSDL.* \
    79         /lib/libSDL.* \
    80         /usr/lib32/libSDL.* \
    81         /usr/lib/libSDL.* \
    82         /usr/local/lib32/libSDL.* \
    83         /usr/local/lib/libSDL.* \
    84         /opt/lib32/libSDL.* \
    85         /opt/lib/libSDL.* \
    86         /opt/local/lib32/libSDL.* \
    87         /opt/local/lib/libSDL.* \
    88         /sw/lib32/libSDL.* \
    89         /sw/lib/libSDL.* \
    90         ) )
    91    endif
     60   PATH_SDK_LIBSDL := $(firstword $(wildcard $(addsuffix libSDL.* $(KBUILD_LIB_SEARCH_PATHS))))
    9261   ifneq ($(PATH_SDK_LIBSDL),)
    9362    PATH_SDK_LIBSDL := $(patsubst %/,%,$(dir $(patsubst %/,%,$(dir $(PATH_SDK_LIBSDL)))))
Note: See TracChangeset for help on using the changeset viewer.