File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,23 @@ cd cpython-source-deps-tix-${TIX_VERSION}
21
21
# Yes, really.
22
22
chmod +x configure
23
23
24
+ CFLAGS=" -fPIC -DUSE_INTERP_RESULT"
25
+
26
+ if [ " ${PYBUILD_PLATFORM} " = " macos" ]; then
27
+ CFLAGS=" ${CFLAGS} -I${TOOLS_PATH} /deps/include"
28
+ EXTRA_CONFIGURE_FLAGS=" --without-x"
29
+ else
30
+ EXTRA_CONFIGURE_FLAGS=" --x-includes=/tools/deps/include --x-libraries=/tools/deps/lib"
31
+ fi
32
+
24
33
# -DUSE_INTERP_RESULT is to allow tix to use deprecated fields or something
25
34
# like that.
26
- CFLAGS=" -fPIC -DUSE_INTERP_RESULT " ./configure \
35
+ CFLAGS=" ${CFLAGS} " ./configure \
27
36
--prefix=/tools/deps \
28
- --x-includes=/tools/deps/include \
29
- --x-libraries=/tools/deps/lib \
30
37
--with-tcl=${TOOLS_PATH} /deps/lib \
31
38
--with-tk=${TOOLS_PATH} /deps/lib \
32
- --enable-shared=no
39
+ --enable-shared=no \
40
+ ${EXTRA_CONFIGURE_FLAGS}
33
41
34
42
make -j ${NUM_CPUS}
35
43
make -j ${NUM_CPUS} install DESTDIR=${ROOT} /out
You can’t perform that action at this time.
0 commit comments