]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - library-bundler
submodules: sync daemonmap reference
[xonotic/netradiant.git] / library-bundler
index 756ebf89a25b6869e127ee86c286046c796c89d7..b08b9c89c0e2b71cf7dbddb7c8ff89bcbbe5c0b1 100755 (executable)
@@ -103,6 +103,11 @@ Multi::excludeLdd () {
                                        | egrep -q '/libatk|/libgdk|/libgtk|/libgio|/libglib|/libgmodule|/libgobject|/libcairo|/libpango|/libfontconfig|/libfreetype'
                                then
                                        Common::noOp
+                               # FreeBSD specific
+                               elif echo "${ldd_line}" \
+                                       | egrep -q '/libc++|/libgxxrt'
+                               then
+                                       Common::noOp
                                else
                                        echo "${ldd_line}"
                                fi
@@ -328,6 +333,9 @@ Multi::bundleLibFromFile () {
 }
 
 Multi::cleanUp () {
+       # Remove from bundle things that useless to be distributed,
+       # like headers or static libraries, also remove
+       # empty directories.
        find "${bundle_dir}/lib" \
                -type f \
                -name '*.a' \
@@ -341,8 +349,8 @@ Multi::cleanUp () {
        find "${bundle_dir}/lib" \
                -depth \
                -type d \
-               -exec rmdir {} \; \
-       || true
+               -empty \
+               -exec rmdir {} \;
 }
 
 Linux::getRpath () {