summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libtinyxml
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/libtinyxml')
-rw-r--r--meta-oe/recipes-support/libtinyxml/libtinyxml_2.6.2.bb18
1 files changed, 10 insertions, 8 deletions
diff --git a/meta-oe/recipes-support/libtinyxml/libtinyxml_2.6.2.bb b/meta-oe/recipes-support/libtinyxml/libtinyxml_2.6.2.bb
index fdadebdfa..8670facc8 100644
--- a/meta-oe/recipes-support/libtinyxml/libtinyxml_2.6.2.bb
+++ b/meta-oe/recipes-support/libtinyxml/libtinyxml_2.6.2.bb
@@ -16,20 +16,21 @@ SRC_URI[sha256sum] = "15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062
16 16
17S = "${WORKDIR}/tinyxml" 17S = "${WORKDIR}/tinyxml"
18 18
19CXXFLAGS += "-fPIC" 19EXTRA_CXXFLAGS = "-I. -fPIC"
20 20
21do_compile() { 21do_compile() {
22 ${CXX} ${CXXFLAGS} -I${S} -c -o ${S}/tinyxml.o ${S}/tinyxml.cpp 22 ${CXX} ${CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o tinyxml.o tinyxml.cpp
23 ${CXX} ${CXXFLAGS} -I${S} -c -o ${S}/tinyxmlerror.o ${S}/tinyxmlerror.cpp 23 ${CXX} ${CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o tinyxmlerror.o tinyxmlerror.cpp
24 ${CXX} ${CXXFLAGS} -I${S} -c -o ${S}/tinyxmlparser.o ${S}/tinyxmlparser.cpp 24 ${CXX} ${CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o tinyxmlparser.o tinyxmlparser.cpp
25 ${CXX} ${CXXFLAGS} \ 25 ${CXX} ${CXXFLAGS} \
26 -shared \ 26 -shared \
27 -Wl,-soname,libtinyxml.so.${PV} \ 27 -Wl,-soname,libtinyxml.so.${PV} \
28 -o ${S}/libtinyxml.so.${PV} \ 28 -o libtinyxml.so.${PV} \
29 ${LDFLAGS} \ 29 ${LDFLAGS} \
30 ${S}/tinyxml.o \ 30 tinyxml.o \
31 ${S}/tinyxmlparser.o \ 31 tinyxmlparser.o \
32 ${S}/tinyxmlerror.o 32 tinyxmlerror.o
33
33} 34}
34 35
35do_install() { 36do_install() {
@@ -41,3 +42,4 @@ do_install() {
41 install -m 0644 ${S}/tinyxml.h ${D}${includedir} 42 install -m 0644 ${S}/tinyxml.h ${D}${includedir}
42} 43}
43 44
45BBCLASSEXTEND += "native"