diff options
Diffstat (limited to 'sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch')
-rw-r--r-- | sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch b/sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch new file mode 100644 index 000000000000..104bb46d2457 --- /dev/null +++ b/sys-apps/mawk/files/mawk-1.3.4-cross-compile.patch @@ -0,0 +1,13 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -104,8 +104,9 @@ + -@rm -f $@ + notangle -R'"array.h"' array.w | $(NOIDENT) | cpif array.h + ++BUILD_CC ?= gcc + scancode.c : $(srcdir)/makescan.c scancode.h nstd.h config.h +- @ECHO_LD@$(CC) $(CFLAGS) $(CPPFLAGS) -o makescan.exe $(srcdir)/makescan.c ++ @ECHO_LD@$(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -o makescan.exe $(srcdir)/makescan.c + rm -f scancode.c + ./makescan.exe > scancode.c + rm makescan.exe |