File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,22 @@ export PKG_CONFIG_PATH=${TOOLS_PATH}/deps/share/pkgconfig:${TOOLS_PATH}/deps/lib
13
13
tar -xf tk${TK_VERSION} -src.tar.gz
14
14
pushd tk8.6.9/unix
15
15
16
- CFLAGS=" -fPIC" ./configure \
16
+ CFLAGS=" -fPIC"
17
+ LDFLAGS=" "
18
+
19
+ if [ " ${PYBUILD_PLATFORM} " = " macos" ]; then
20
+ CFLAGS=" ${CFLAGS} -I${TOOLS_PATH} /deps/include"
21
+ LDFLAGS=" -L${TOOLS_PATH} /deps/lib"
22
+ EXTRA_CONFIGURE_FLAGS=" --enable-aqua=yes --without-x"
23
+ else
24
+ EXTRA_CONFIGURE_FLAGS=" --x-includes=${TOOLS_PATH} /deps/include --x-libraries=${TOOLS_PATH} /deps/lib"
25
+ fi
26
+
27
+ CFLAGS=" ${CFLAGS} " LDFLAGS=" ${LDFLAGS} " ./configure \
17
28
--prefix=/tools/deps \
18
- --x-includes=${TOOLS_PATH} /deps/include \
19
- --x-libraries=${TOOLS_PATH} /deps/lib \
20
29
--with-tcl=${TOOLS_PATH} /deps/lib \
21
- --enable-shared=no
30
+ --enable-shared=no \
31
+ ${EXTRA_CONFIGURE_FLAGS}
22
32
23
33
# For some reason musl isn't link libXau and libxcb. So we hack the Makefile
24
34
# to do what we want.
You can’t perform that action at this time.
0 commit comments