diff options
Diffstat (limited to 'etc/import/src')
-rw-r--r-- | etc/import/src/TARGETS.archive | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/etc/import/src/TARGETS.archive b/etc/import/src/TARGETS.archive index f0a5b2b4..a9ee796d 100644 --- a/etc/import/src/TARGETS.archive +++ b/etc/import/src/TARGETS.archive @@ -416,11 +416,11 @@ } , "archive_libgcc": { "type": ["@", "rules", "CC", "library"] - , "arguments_config": ["USE_SYSTEM_LIBS", "ENABLE_LibGCC"] + , "arguments_config": ["USE_SYSTEM_LIBS", "ENABLE_LIBGCC"] , "name": ["archive_libgcc"] , "private-ldflags": { "type": "if" - , "cond": {"type": "var", "name": "ENABLE_LibGCC"} + , "cond": {"type": "var", "name": "ENABLE_LIBGCC"} , "then": { "type": "if" , "cond": {"type": "var", "name": "USE_SYSTEM_LIBS"} @@ -429,7 +429,7 @@ } , "deps": { "type": "if" - , "cond": {"type": "var", "name": "ENABLE_LibGCC"} + , "cond": {"type": "var", "name": "ENABLE_LIBGCC"} , "then": { "type": "if" , "cond": {"type": "var", "name": "USE_SYSTEM_LIBS"} @@ -518,4 +518,31 @@ } } } +, "archive_hidden_symbols": + { "type": ["@", "rules", "CC", "library"] + , "arguments_config": ["COMPILER_FAMILY", "HIDE_SYMBOLS"] + , "name": ["archive_hidden_symbols"] + , "private-ldflags": + { "type": "if" + , "cond": + { "type": "==" + , "$1": {"type": "var", "name": "COMPILER_FAMILY"} + , "$2": "msvc" + } + , "then": [] + , "else": + { "type": "if" + , "cond": {"type": "var", "name": "HIDE_SYMBOLS"} + , "then": + { "type": "case*" + , "expr": {"type": "var", "name": "COMPILER_FAMILY"} + , "case": + [ ["clang", ["-fvisibility=hidden"]] + , ["gnu", ["-fvisibility=hidden"]] + , ["intel", ["-fvisibility=hidden"]] + ] + } + } + } + } } |