mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-06 16:04:40 +02:00
Merge pull request #38 from kergoth/sb-3120
Silence build warnings for SB-3120
This commit is contained in:
23
core/recipes-devtools/ossp-uuid/ossp-uuid/ldflags.patch
Normal file
23
core/recipes-devtools/ossp-uuid/ossp-uuid/ldflags.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
Index: uuid-1.6.2/Makefile.in
|
||||
===================================================================
|
||||
--- uuid-1.6.2.orig/Makefile.in
|
||||
+++ uuid-1.6.2/Makefile.in
|
||||
@@ -113,15 +113,15 @@ all: $(TARGETS)
|
||||
@$(LIBTOOL) --mode=compile $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
||||
|
||||
$(LIB_NAME): $(LIB_OBJS)
|
||||
- @$(LIBTOOL) --mode=link $(CC) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \
|
||||
+ @$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \
|
||||
-version-info `$(SHTOOL) version -l c -d libtool $(S)/uuid_vers.h`
|
||||
|
||||
$(DCE_NAME): $(DCE_OBJS)
|
||||
- @$(LIBTOOL) --mode=link $(CC) -o $(DCE_NAME) $(DCE_OBJS) -rpath $(libdir) \
|
||||
+ @$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(DCE_NAME) $(DCE_OBJS) -rpath $(libdir) \
|
||||
-version-info `$(SHTOOL) version -l c -d libtool $(S)/uuid_vers.h`
|
||||
|
||||
$(CXX_NAME): $(CXX_OBJS)
|
||||
- @$(LIBTOOL) --mode=link $(CXX) -o $(CXX_NAME) $(CXX_OBJS) -rpath $(libdir) \
|
||||
+ @$(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $(CXX_NAME) $(CXX_OBJS) -rpath $(libdir) \
|
||||
-version-info `$(SHTOOL) version -l c -d libtool $(S)/uuid_vers.h`
|
||||
|
||||
$(PRG_NAME): $(PRG_OBJS) $(LIB_NAME)
|
||||
2
core/recipes-devtools/ossp-uuid/ossp-uuid_1.6.2.bbappend
Normal file
2
core/recipes-devtools/ossp-uuid/ossp-uuid_1.6.2.bbappend
Normal file
@@ -0,0 +1,2 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
|
||||
SRC_URI += "file://ldflags.patch"
|
||||
11
fsl-ppc/recipes-extended/testfloat/testfloat/ldflags.patch
Normal file
11
fsl-ppc/recipes-extended/testfloat/testfloat/ldflags.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- TestFloat-2a/testfloat/powerpc-linux-gcc/Makefile
|
||||
+++ TestFloat-2a/testfloat/powerpc-linux-gcc/Makefile
|
||||
@@ -14,7 +14,7 @@ COMPILE_C_HARD = $(CC) -c -o $@ $(INCLUD
|
||||
|
||||
COMPILE_SLOWFLOAT_C = $(CC) -c -o $@ $(INCLUDES) -I- -O
|
||||
|
||||
-LINK = $(CC) -lm -o $@
|
||||
+LINK = $(CC) -lm -o $@ $(LDFLAGS)
|
||||
|
||||
SOFTFLOAT_H = $(SOFTFLOAT_DIR)/softfloat.h
|
||||
SOFTFLOAT_OBJ = $(SOFTFLOAT_DIR)/softfloat$(OBJ)
|
||||
2
fsl-ppc/recipes-extended/testfloat/testfloat_2a.bbappend
Normal file
2
fsl-ppc/recipes-extended/testfloat/testfloat_2a.bbappend
Normal file
@@ -0,0 +1,2 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
|
||||
SRC_URI_append_fslmachine = " file://ldflags.patch"
|
||||
21
fsl-ppc/recipes-tools/boot-format/boot-format/flags.patch
Normal file
21
fsl-ppc/recipes-tools/boot-format/boot-format/flags.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
Index: git/Makefile
|
||||
===================================================================
|
||||
--- git.orig/Makefile
|
||||
+++ git/Makefile
|
||||
@@ -3,14 +3,14 @@
|
||||
INSTALL=install
|
||||
PREFIX=/usr
|
||||
|
||||
-CFLAGS=-Wall
|
||||
+override CFLAGS+=-Wall
|
||||
|
||||
all: boot_format
|
||||
|
||||
boot_format.o: boot_format.c boot_format.h
|
||||
|
||||
boot_format: boot_format.o
|
||||
- $(CC) $< -o $@
|
||||
+ $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
|
||||
|
||||
install: boot_format
|
||||
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
||||
@@ -0,0 +1,3 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/boot-format:"
|
||||
SRC_URI += "file://flags.patch"
|
||||
EXTRA_OEMAKE += "'CFLAGS=${CFLAGS}' 'LDFLAGS=${LDFLAGS}'"
|
||||
Reference in New Issue
Block a user