aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/system_stl/ya.make
blob: 3b4327f877739e1e2670036f2bf45d03004014d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
LIBRARY()

WITHOUT_LICENSE_TEXTS()

LICENSE(YandexOpen)
 
OWNER(
    g:contrib
    g:cpp-contrib
    somov
)

NO_PLATFORM()

ADDINCL(GLOBAL contrib/libs/cxxsupp/system_stl/include)

IF (OS_IOS OR OS_DARWIN)
    LDFLAGS(-lc++)
ELSEIF (OS_ANDROID)
    IF (STATIC_STL)
        LDFLAGS(-l:libc++.a)
    ELSE()
        LDFLAGS(-lc++)
    ENDIF()
ELSE()
    CFLAGS(GLOBAL -DLIBCXX_BUILDING_LIBGCC)
    LDFLAGS(-lgcc_s)

    # libatomic.a is needed in order to make atomic operations work
    LDFLAGS(-l:libatomic.a)

    IF (STATIC_STL)
        LDFLAGS(-l:libstdc++.a)
    ELSE()
        LDFLAGS(-lstdc++)
    ENDIF()
ENDIF()

END()