Browse Source

Tweaks for new osx build

tags/v2.1-rc1
falkTX 5 years ago
parent
commit
d586cb32ad
3 changed files with 5 additions and 4 deletions
  1. +2
    -2
      data/macos/build-deps-new.sh
  2. +1
    -1
      data/macos/env.sh
  3. +2
    -1
      source/Makefile.mk

+ 2
- 2
data/macos/build-deps-new.sh View File

@@ -489,7 +489,7 @@ fi


if [ ! -f sip-${SIP_VERSION}/build-done ]; then if [ ! -f sip-${SIP_VERSION}/build-done ]; then
cd sip-${SIP_VERSION} cd sip-${SIP_VERSION}
python3 configure.py
python3 configure.py --sip-module PyQt5.sip
make ${MAKE_ARGS} make ${MAKE_ARGS}
make install make install
touch build-done touch build-done
@@ -506,7 +506,7 @@ fi


if [ ! -f PyQt5_gpl-${PYQT5_VERSION}/build-done ]; then if [ ! -f PyQt5_gpl-${PYQT5_VERSION}/build-done ]; then
cd PyQt5_gpl-${PYQT5_VERSION} cd PyQt5_gpl-${PYQT5_VERSION}
python3 configure.py --confirm-license -c
python3 configure.py --concatenate --confirm-license -c
make ${MAKE_ARGS} make ${MAKE_ARGS}
make install make install
touch build-done touch build-done


+ 1
- 1
data/macos/env.sh View File

@@ -10,7 +10,7 @@ export CXX=clang++


export MACOS="true" export MACOS="true"


if [ $(clang -v 2>&1 | sed -n 's/.*version \([0-9]\).*/\1/p') -lt 9 ]; then
if [ $(clang -v 2>&1 | grep version | cut -d' ' -f4 | cut -d'.' -f1) -lt 9 ]; then
export MACOS_OLD="true" export MACOS_OLD="true"
fi fi




+ 2
- 1
source/Makefile.mk View File

@@ -107,7 +107,8 @@ BASE_OPTS = -O3 -ffast-math -mtune=generic -msse -msse2 -mfpmath=sse -fdata-sec


ifeq ($(MACOS),true) ifeq ($(MACOS),true)
# MacOS linker flags # MacOS linker flags
LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-dead_strip -Wl,-dead_strip_dylibs
BASE_FLAGS += -Wno-deprecated-declarations
LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-dead_strip -Wl,-dead_strip_dylibs
else else
# Common linker flags # Common linker flags
LINK_OPTS = -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed LINK_OPTS = -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed


Loading…
Cancel
Save