mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-01 01:13:29 +08:00
aad7a8fa7f
Building test programs fails for a static link, because duma.a redefines memcpy and strcpy, which are already present in the C library. Fixes quite some build failures: http://autobuild.buildroot.net/results/3c7/3c7a4751c7ca71ad429c2d67f380aa225f151350/ (arm) http://autobuild.buildroot.net/results/358/358293d22ae24237719f0aa27e88e87d03856973/ (x86_64) http://autobuild.buildroot.net/results/947/9472d78b890639d3204e1942491f1eae62fb8a36/ (powerpc) http://autobuild.buildroot.net/results/ffd/ffd2e7ab7a6045f5eeaa25cd25088ad0a5b6509a/ (i686) ... Also rename patches according to the new naming scheme. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
38 lines
938 B
Diff
38 lines
938 B
Diff
Allow cross compilation. Adapted from crosstool-ng.
|
|
|
|
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
|
|
|
|
Index: b/GNUmakefile
|
|
===================================================================
|
|
--- a/GNUmakefile
|
|
+++ b/GNUmakefile
|
|
@@ -93,10 +93,6 @@
|
|
# also define 'WIN32'
|
|
|
|
# some defaults:
|
|
-CC=gcc
|
|
-CXX=g++
|
|
-AR=ar
|
|
-RANLIB=ranlib
|
|
INSTALL=install
|
|
RM=rm
|
|
RMFORCE=rm -f
|
|
@@ -471,7 +467,7 @@
|
|
|
|
createconf$(EXEPOSTFIX): createconf.o
|
|
- $(RMFORCE) createconf$(EXEPOSTFIX)
|
|
- $(CC) $(CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
|
|
+ $(CC_FOR_BUILD) $(HOST_CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
|
|
|
|
tstheap$(EXEPOSTFIX): libduma.a tstheap.o
|
|
- $(RMFORCE) tstheap$(EXEPOSTFIX)
|
|
@@ -532,7 +528,7 @@
|
|
# define rules how to build objects for createconf
|
|
#
|
|
createconf.o:
|
|
- $(CC) $(CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
|
|
+ $(CC_FOR_BUILD) $(HOST_CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
|
|
|
|
|
|
#
|