diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-02-22 18:21:58 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-02-24 12:54:58 +0100 |
commit | 60094d4293928d7901e9bc2f3ec29f5cf814cbfc (patch) | |
tree | af28e0a8415319ca509333af1045c18f18d54398 /etc/defaults | |
parent | ec05fdb04eeafec146715df1c15fed1a507feafb (diff) | |
download | justbuild-60094d4293928d7901e9bc2f3ec29f5cf814cbfc.tar.gz |
libarchive: Update to latest v3.6.2
Changes in build description:
- fix capitalization of ENABLE_LIBGCC flag.
- add new HIDE_SYMBOLS flag to allow hiding of export symbols; used
similar logic as for libcurl to circumvent the original
CHECK_C_SOURCE_COMPILES macro use.
Diffstat (limited to 'etc/defaults')
-rw-r--r-- | etc/defaults/CC/TARGETS.archive | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/etc/defaults/CC/TARGETS.archive b/etc/defaults/CC/TARGETS.archive index 7e6b1a1b..a5b1cd4c 100644 --- a/etc/defaults/CC/TARGETS.archive +++ b/etc/defaults/CC/TARGETS.archive @@ -1,6 +1,7 @@ { "defaults": { "type": ["CC", "defaults"] - , "arguments_config": ["OS", "COMPILER_FAMILY", "DEBUG", "ENABLE_BZip2"] + , "arguments_config": + ["OS", "COMPILER_FAMILY", "DEBUG", "ENABLE_BZip2", "HIDE_SYMBOLS"] , "base": [["@", "base", "CC", "defaults"]] , "ADD_CFLAGS": { "type": "let*" @@ -93,6 +94,27 @@ , ["mac", ["-Wno-deprecated-declarations"]] ] } + , { "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", ["-D__LIBARCHIVE_ENABLE_VISIBILITY"]] + , ["gnu", ["-D__LIBARCHIVE_ENABLE_VISIBILITY"]] + , ["intel", ["-D__LIBARCHIVE_ENABLE_VISIBILITY"]] + ] + } + } + } ] } } |