Build sgdisk with _FILE_OFFSET_BITS=64. am: f123bad00c
Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2693070
Change-Id: I3124e2ced30ab8e14b0eea8011eb44a06880a70f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/Android.bp b/Android.bp
index ec1c354..c1a916a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -37,15 +37,14 @@
"-Wno-pragma-pack",
"-Werror",
"-fPIC",
+ "-D_FILE_OFFSET_BITS=64",
],
- target: {
- darwin: {
- cflags: [
- "-D_FILE_OFFSET_BITS=64",
- "-Doff64_t=off_t",
- ],
- },
- },
+ // This project requires _FILE_OFFSET_BITS=64, which isn't globally
+ // true for 32-bit Android builds. It's safe here because the libraries
+ // built by this build file aren't exported. If that changes, you'll
+ // need to come up with a plan (probably either upstreaming better 32-bit
+ // support, or waiting until we no longer support 32-bit either).
+ visibility: [":__subpackages__"],
}
cc_binary {