Skip to contentSkip to conversation

musicbrainz: handle rebuilds

PATCH New Ross Burton 1 participant 1 message Jan 9, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 musicbrainz: handle rebuilds

When rebuilding build-native already exists. Sadly handling the directory existing causes cmake to forkbomb when rebuilding, so delete an existing build-native.

Also remove a variable that cmake warns isn't being used, and just build the tool that we need natively, not the entire library.

---
 meta/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb +4 -2
index 7343662..21eec6d 100644
@@ -20,15 +20,17 @@ LDFLAGS_prepend_libc-uclibc = " -lpthread "
 inherit cmake pkgconfig
 
 do_configure_prepend() {
+    # The native build really doesn't like being rebuilt, so delete
+    # it if it's already present.
+    rm -rf build-native
     mkdir build-native
     cd build-native
     cmake -DCMAKE_C_FLAGS=${BUILD_CFLAGS} \
             -DCMAKE_C_COMPILER=${BUILD_CC} \
             -DCMAKE_CXX_FLAGS=${BUILD_CXXFLAGS} \
             -DCMAKE_CXX_COMPILER=${BUILD_CXX} \
-            -DCMAKE_LINK_FLAGS=${BUILD_LDFLAGS} \
             ..
-    make
+    make make-c-interface
     cd ..
 }
 
Signature · 1 line
1.7.10.4