libmarkdown2: fix cross-compile

This commit is contained in:
Đoàn Trần Công Danh 2025-01-05 09:28:03 +07:00
parent d4ac545030
commit f2b92346c6
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/configure.inc
+++ b/configure.inc
@@ -1770,7 +1770,7 @@
}
EOF
- if $AC_CC -o config.sed ngc$$.c; then
+ if $BUILD_CC -o config.sed ngc$$.c; then
rm -f ngc$$.c
__config_files="$__config_files config.sed"
else

View File

@ -0,0 +1,13 @@
--- a/Makefile.in
+++ b/Makefile.in
@@ -95,8 +95,8 @@
blocktags: mktags
./mktags > blocktags
-mktags: mktags.o
- $(LINK) -o mktags mktags.o
+mktags: mktags.c
+ $(BUILD_CC) -o mktags mktags.c
# example programs
@THEME@theme: theme.o $(COMMON) $(MKDLIB) mkdio.h