jasper: avoid --gc-sections / hidden symbols (#30617)

Jasper v3.x changed a default to hide hidden symbols, but apparently
eccodes relies on those symbols and fails to link otherwise.
This commit is contained in:
Harmen Stoppels 2022-05-11 13:52:54 +02:00 committed by GitHub
parent c164e6fe03
commit 1c51d6313b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,11 @@ def cmake_args(self):
else:
args.append('-DJAS_ENABLE_SHARED=false')
# The default is ON from version 3.x, OFF for 2.x.
# packages like eccodes rely on those symbols.
# Force the same default here.
args.append('-DJAS_ENABLE_HIDDEN=OFF')
return args
def configure_args(self):