File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 5050sed " ${sed_args[@]} " ' s/all: binaries libraries doc/all: libraries/' Makefile
5151sed " ${sed_args[@]} " ' s/install-binaries: $(TK_STUB_LIB_FILE) $(TK_LIB_FILE) ${WISH_EXE}/install-binaries: $(TK_STUB_LIB_FILE) $(TK_LIB_FILE)/' Makefile
5252
53- # For some reason musl isn't link libXau and libxcb. So we hack the Makefile
54- # to do what we want.
55- # if [ "${CC}" = "musl-clang" ]; then
56- sed " ${sed_args[@]} " ' s/-ldl -lpthread /-ldl -lpthread -lXau -lxcb/' tkConfig.sh
57- sed " ${sed_args[@]} " ' s/-lpthread $(X11_LIB_SWITCHES) -ldl -lpthread/-lpthread $(X11_LIB_SWITCHES) -ldl -lpthread -lXau -lxcb/' Makefile
58- # fi
53+ # We are statically linking libX11, and static libraries do not carry
54+ # information about dependencies. pkg-config --static does, but Tcl/Tk's
55+ # build system apparently is too old for that. So we need to inform the
56+ # build system that libX11.a needs libXau.a and libxcb.a.
57+ MAKE_VARS=(DYLIB_INSTALL_DIR=@rpath X11_LIB_SWITCHES=" -lX11 -lXau -lxcb" )
5958
60- make -j ${NUM_CPUS} DYLIB_INSTALL_DIR=@rpath
59+ make -j ${NUM_CPUS} " ${MAKE_VARS[@]} "
6160touch wish
62- make -j ${NUM_CPUS} install DESTDIR=${ROOT} /out DYLIB_INSTALL_DIR=@rpath
61+ make -j ${NUM_CPUS} install DESTDIR=${ROOT} /out " ${MAKE_VARS[@]} "
6362make -j ${NUM_CPUS} install-private-headers DESTDIR=${ROOT} /out
6463
6564# For some reason libtk*.a have weird permissions. Fix that.
You can’t perform that action at this time.
0 commit comments