]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
AOSP: E2fsprogs: fix ODR issue
authorAndreas Gampe <agampe@google.com>
Wed, 30 Jan 2019 02:07:55 +0000 (18:07 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 8 Feb 2019 03:41:25 +0000 (22:41 -0500)
Do not use whole_static_libs and shared_libs at the same time. Fix
up clients.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Bug: 123590866
Test: mmma external/e2fsprogs
Change-Id: I36d184dd878de2beacbb17c306e47076b44d68bb
From AOSP commit: fece156b105719c782351e447298de073d4dab04

e2fsck/Android.bp
lib/ext2fs/Android.bp
lib/support/Android.bp
misc/Android.bp
resize/Android.bp

index f3f70a0a3d94f1cfa4f73c38aa452886db4cca03..f3443127a6e04a60ffe45b5213423f8669212cd2 100644 (file)
@@ -44,6 +44,7 @@ cc_defaults {
 e2fsck_libs = [
     "libext2fs",
     "libext2_blkid",
+    "libext2_com_err",
     "libext2_uuid",
     "libext2_quota",
     "libext2_e2p",
index 5d10d3f73d1d7ebefffd9454152e43917144ce13..e09ec3fb12a2668a3d84cb14c8cbe7b36237c6cb 100644 (file)
@@ -91,24 +91,14 @@ cc_library {
         "test_io.c",
     ],
     shared_libs: [
+        "libext2_com_err",
         "libsparse",
         "libz",
     ],
-    whole_static_libs: [
-        "libext2_com_err"
-    ],
     cflags: ["-Wno-unused-parameter"],
     target: {
-        host: {
-            // Consider removing this library as a whole for the host. It is not
-            // in the android side.
-            whole_static_libs: ["libext2_com_err"],
-        },
         android: {
-            shared_libs: [
-                "libext2_com_err",
-                "libext2_uuid",
-            ],
+            shared_libs: [ "libext2_uuid" ],
         },
         windows: {
             enabled: true,
index 894d33572674d17888a053c63349fc5f97c65fbd..2bc07b7f85250ee137a1e2397b1cc277cc134597 100644 (file)
@@ -21,6 +21,7 @@ cc_library {
     shared_libs: [
         "libext2fs",
         "libext2_blkid",
+        "libext2_com_err",
     ],
 
     target: {
index 301ce5d9b75d46e4b7c29b973c485cd880687952..dea2f9fe4e7ed7c2b00e473260897eb161ab4511 100644 (file)
@@ -21,8 +21,9 @@ cc_library {
     ],
     cflags: ["-Wno-error=format-extra-args"],
     shared_libs: [
-        "libext2_quota",
         "libext2fs",
+        "libext2_com_err",
+        "libext2_quota",
     ],
     system_shared_libs: ["libc", "libdl"],
     export_include_dirs: ["."],
@@ -118,6 +119,7 @@ cc_defaults {
 
 tune2fs_libs = [
     "libext2_blkid",
+    "libext2_com_err",
     "libext2_quota",
     "libext2_uuid",
     "libext2_e2p",
index 22d2408d79db523259949792a80051a1813d2933..d55e24c216701a09246dd90532127c38a0496ca5 100644 (file)
@@ -15,6 +15,7 @@ cc_binary {
     ],
     shared_libs: [
         "libext2fs",
+        "libext2_com_err",
         "libext2_e2p",
         "libext2_uuid",
         "libext2_blkid",