Merge pull request #38 from kergoth/sb-3120

Silence build warnings for SB-3120
This commit is contained in:
Noor-Ahsan
2014-06-26 16:48:15 +05:00
6 changed files with 62 additions and 0 deletions

View 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)

View File

@@ -0,0 +1,2 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
SRC_URI += "file://ldflags.patch"

View 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)

View File

@@ -0,0 +1,2 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
SRC_URI_append_fslmachine = " file://ldflags.patch"

View 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

View File

@@ -0,0 +1,3 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/boot-format:"
SRC_URI += "file://flags.patch"
EXTRA_OEMAKE += "'CFLAGS=${CFLAGS}' 'LDFLAGS=${LDFLAGS}'"