summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/libx86-1/libx86-1.1/makefile-add-ldflags.patch17
-rw-r--r--meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb1
2 files changed, 18 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/libx86-1/libx86-1.1/makefile-add-ldflags.patch b/meta-oe/recipes-extended/libx86-1/libx86-1.1/makefile-add-ldflags.patch
new file mode 100644
index 000000000..821ab379d
--- /dev/null
+++ b/meta-oe/recipes-extended/libx86-1/libx86-1.1/makefile-add-ldflags.patch
@@ -0,0 +1,17 @@
1Upstream-Status: Pending
2
3Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
4
5diff --git a/Makefile b/Makefile
6index 951b617..6d9b73d 100644
7--- a/Makefile
8+++ b/Makefile
9@@ -22,7 +22,7 @@ static: $(OBJECTS)
10 $(AR) cru libx86.a $(OBJECTS)
11
12 shared: $(OBJECTS)
13- $(CC) $(CFLAGS) -o libx86.so.1 -shared -Wl,-soname,libx86.so.1 $(OBJECTS)
14+ $(CC) $(CFLAGS) $(LDFLAGS) -o libx86.so.1 -shared -Wl,-soname,libx86.so.1 $(OBJECTS)
15
16 objclean:
17 $(MAKE) -C x86emu clean
diff --git a/meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb b/meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb
index 20c152cb4..d30314725 100644
--- a/meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb
+++ b/meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=633af6c02e6f624d4c472d970a2aca53"
10SRC_URI = "http://www.codon.org.uk/~mjg59/libx86/downloads/${BPN}-${PV}.tar.gz \ 10SRC_URI = "http://www.codon.org.uk/~mjg59/libx86/downloads/${BPN}-${PV}.tar.gz \
11 file://libx86-mmap-offset.patch \ 11 file://libx86-mmap-offset.patch \
12 file://0001-assume-zero-is-valid-address.patch \ 12 file://0001-assume-zero-is-valid-address.patch \
13 file://makefile-add-ldflags.patch \
13" 14"
14 15
15SRC_URI[md5sum] = "41bee1f8e22b82d82b5f7d7ba51abc2a" 16SRC_URI[md5sum] = "41bee1f8e22b82d82b5f7d7ba51abc2a"