summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/minini/minini_1.2.b.bb
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2015-06-18 15:48:46 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2015-06-23 12:43:12 +0200
commit38f86f841b92d65419af96c8492e3fa49bf3c125 (patch)
treeca225c3bb68258aba00fb3163425bd666a9d56da /meta-oe/recipes-support/minini/minini_1.2.b.bb
parentbefc528b8c13cf099a2eed38b67f13dafbaa04db (diff)
downloadmeta-openembedded-38f86f841b92d65419af96c8492e3fa49bf3c125.tar.gz
minini: fix build when SECURITY_CFLAGS includes -pie -fpie
Separating compile and link steps avoids build errors when security_flags.inc is used: | DEBUG: Executing shell function do_compile | ../sysdeps/i386/start.S:98: error: undefined reference to 'main' | collect2: error: ld returned 1 exit status Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/minini/minini_1.2.b.bb')
-rw-r--r--meta-oe/recipes-support/minini/minini_1.2.b.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/minini/minini_1.2.b.bb b/meta-oe/recipes-support/minini/minini_1.2.b.bb
index e73949882..6607dd896 100644
--- a/meta-oe/recipes-support/minini/minini_1.2.b.bb
+++ b/meta-oe/recipes-support/minini/minini_1.2.b.bb
@@ -22,7 +22,8 @@ SRC_URI[sha256sum] = "b08839af74acb36061fb76e1123bf56711bc5cf7a08b32e189b0ad78a2
22do_configure[noexec] = "1" 22do_configure[noexec] = "1"
23 23
24do_compile() { 24do_compile() {
25 ${CC} minIni.c -shared -fPIC -o libminini.so.0.0 -Wl,-soname,libminini.so.0 ${CFLAGS} ${LDFLAGS} 25 ${CC} ${CFLAGS} -fPIC -c minIni.c -o minIni.o
26 ${CC} ${LDFLAGS} -shared -Wl,-soname,libminini.so.0 minIni.o -o libminini.so.0.0
26} 27}
27 28
28do_install () { 29do_install () {