summaryrefslogtreecommitdiff
path: root/etc/defaults
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-02-22 18:21:58 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-02-24 12:54:58 +0100
commit60094d4293928d7901e9bc2f3ec29f5cf814cbfc (patch)
treeaf28e0a8415319ca509333af1045c18f18d54398 /etc/defaults
parentec05fdb04eeafec146715df1c15fed1a507feafb (diff)
downloadjustbuild-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.archive24
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"]]
+ ]
+ }
+ }
+ }
]
}
}