Fix Python bz2 module failing to import on older macOS versions

Found by failing bundled modules test. The bz2 library was compiled without
proper minimum SDK version flags.
This commit is contained in:
Brecht Van Lommel 2020-04-29 16:23:52 +02:00
parent 6c4ef6159c
commit 0ddf5860f5
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ if(UNIX AND NOT APPLE)
set(BZIP2_CFLAGS "-fPIC -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64")
set(BZIP2_CONFIGURE_ENV ${BZIP2_CONFIGURE_ENV} && export LDFLAGS=${BZIP2_LDFLAGS} && export CFLAGS=${BZIP2_CFLAGS}
&& export PREFIX=${BZIP2_PREFIX})
else()
set(BZIP2_CONFIGURE_ENV ${CONFIGURE_ENV})
endif()
ExternalProject_Add(external_bzip2