equal
deleted
inserted
replaced
36 # Tell the compiler not to export any functions unless declared so in |
36 # Tell the compiler not to export any functions unless declared so in |
37 # the source code. On Windows, this is the default and cannot be changed. |
37 # the source code. On Windows, this is the default and cannot be changed. |
38 # On Mac, we have always exported all symbols, probably due to oversight |
38 # On Mac, we have always exported all symbols, probably due to oversight |
39 # and/or misunderstanding. To emulate this, don't hide any symbols |
39 # and/or misunderstanding. To emulate this, don't hide any symbols |
40 # by default. |
40 # by default. |
|
41 # On AIX/xlc we need at least xlc 13.1 for the symbol hiding |
41 # Also provide an override for non-conformant libraries. |
42 # Also provide an override for non-conformant libraries. |
42 ifeq ($(TOOLCHAIN_TYPE), gcc) |
43 ifeq ($(TOOLCHAIN_TYPE), gcc) |
43 CFLAGS_JDKLIB += -fvisibility=hidden |
44 CFLAGS_JDKLIB += -fvisibility=hidden |
44 CXXFLAGS_JDKLIB += -fvisibility=hidden |
45 CXXFLAGS_JDKLIB += -fvisibility=hidden |
45 LDFLAGS_JDKLIB += -Wl,--exclude-libs,ALL |
46 LDFLAGS_JDKLIB += -Wl,--exclude-libs,ALL |
53 else ifeq ($(TOOLCHAIN_TYPE), solstudio) |
54 else ifeq ($(TOOLCHAIN_TYPE), solstudio) |
54 CFLAGS_JDKLIB += -xldscope=hidden |
55 CFLAGS_JDKLIB += -xldscope=hidden |
55 CXXFLAGS_JDKLIB += -xldscope=hidden |
56 CXXFLAGS_JDKLIB += -xldscope=hidden |
56 EXPORT_ALL_SYMBOLS := -xldscope=global |
57 EXPORT_ALL_SYMBOLS := -xldscope=global |
57 else ifeq ($(TOOLCHAIN_TYPE), xlc) |
58 else ifeq ($(TOOLCHAIN_TYPE), xlc) |
58 CFLAGS_JDKLIB += -qvisibility=hidden |
59 ifneq ($(CC_VERSION_NUMBER), 12.1) |
59 CXXFLAGS_JDKLIB += -qvisibility=hidden |
60 CFLAGS_JDKLIB += -qvisibility=hidden |
60 EXPORT_ALL_SYMBOLS := -qvisibility=default |
61 CXXFLAGS_JDKLIB += -qvisibility=hidden |
|
62 EXPORT_ALL_SYMBOLS := -qvisibility=default |
|
63 endif |
61 endif |
64 endif |
62 |
65 |
63 ################################################################################ |
66 ################################################################################ |
64 # Find a library |
67 # Find a library |
65 # Param 1 - module name |
68 # Param 1 - module name |